diff options
author | 2023-11-23 07:54:23 -0500 | |
---|---|---|
committer | 2023-11-23 20:42:04 +0100 | |
commit | 39b9c0d6baeda0609dfe248fc5b86fb65ff69c2c (patch) | |
tree | 9e6347ac7c9b74a39ce07a6644221556d6fc1a97 /include/background-image.h | |
parent | xdg-shell: chase events update (diff) | |
download | sway-39b9c0d6baeda0609dfe248fc5b86fb65ff69c2c.tar.gz sway-39b9c0d6baeda0609dfe248fc5b86fb65ff69c2c.tar.zst sway-39b9c0d6baeda0609dfe248fc5b86fb65ff69c2c.zip |
common: Drop unused render_background_image
And the associated background_mode enum.
Diffstat (limited to 'include/background-image.h')
-rw-r--r-- | include/background-image.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/include/background-image.h b/include/background-image.h index a97ef375..5ecd4c53 100644 --- a/include/background-image.h +++ b/include/background-image.h | |||
@@ -1,20 +1,7 @@ | |||
1 | #ifndef _SWAY_BACKGROUND_IMAGE_H | 1 | #ifndef _SWAY_BACKGROUND_IMAGE_H |
2 | #define _SWAY_BACKGROUND_IMAGE_H | 2 | #define _SWAY_BACKGROUND_IMAGE_H |
3 | #include "cairo_util.h" | 3 | #include <cairo.h> |
4 | 4 | ||
5 | enum background_mode { | ||
6 | BACKGROUND_MODE_STRETCH, | ||
7 | BACKGROUND_MODE_FILL, | ||
8 | BACKGROUND_MODE_FIT, | ||
9 | BACKGROUND_MODE_CENTER, | ||
10 | BACKGROUND_MODE_TILE, | ||
11 | BACKGROUND_MODE_SOLID_COLOR, | ||
12 | BACKGROUND_MODE_INVALID, | ||
13 | }; | ||
14 | |||
15 | enum background_mode parse_background_mode(const char *mode); | ||
16 | cairo_surface_t *load_background_image(const char *path); | 5 | cairo_surface_t *load_background_image(const char *path); |
17 | void render_background_image(cairo_t *cairo, cairo_surface_t *image, | ||
18 | enum background_mode mode, int buffer_width, int buffer_height); | ||
19 | 6 | ||
20 | #endif | 7 | #endif |