diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2023-11-23 07:54:23 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2023-11-23 07:54:23 -0500 |
| commit | 01e374aad3650882ab84c8fc1f16528f5a8afb65 (patch) | |
| tree | 9e6347ac7c9b74a39ce07a6644221556d6fc1a97 /include/background-image.h | |
| parent | b64f0d9a212d3f3ed01c398f4990f474941f79fc (diff) | |
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 @@ #ifndef _SWAY_BACKGROUND_IMAGE_H #define _SWAY_BACKGROUND_IMAGE_H -#include "cairo_util.h" +#include <cairo.h> -enum background_mode { - BACKGROUND_MODE_STRETCH, - BACKGROUND_MODE_FILL, - BACKGROUND_MODE_FIT, - BACKGROUND_MODE_CENTER, - BACKGROUND_MODE_TILE, - BACKGROUND_MODE_SOLID_COLOR, - BACKGROUND_MODE_INVALID, -}; - -enum background_mode parse_background_mode(const char *mode); cairo_surface_t *load_background_image(const char *path); -void render_background_image(cairo_t *cairo, cairo_surface_t *image, - enum background_mode mode, int buffer_width, int buffer_height); #endif |
