diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-02 22:48:13 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-04-04 18:47:48 -0400 |
commit | b32bf595aeae7f8ac68354e45a80c0438374ec17 (patch) | |
tree | b93185d2ac4b7081b9d0651eaaadeae21de48929 /include | |
parent | Move swaybg background rendering into common/ (diff) | |
download | sway-b32bf595aeae7f8ac68354e45a80c0438374ec17.tar.gz sway-b32bf595aeae7f8ac68354e45a80c0438374ec17.tar.zst sway-b32bf595aeae7f8ac68354e45a80c0438374ec17.zip |
Initial swaylock port
Diffstat (limited to 'include')
-rw-r--r-- | include/background-image.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/background-image.h b/include/background-image.h index e160e63d..15935ffd 100644 --- a/include/background-image.h +++ b/include/background-image.h | |||
@@ -9,11 +9,12 @@ enum background_mode { | |||
9 | BACKGROUND_MODE_CENTER, | 9 | BACKGROUND_MODE_CENTER, |
10 | BACKGROUND_MODE_TILE, | 10 | BACKGROUND_MODE_TILE, |
11 | BACKGROUND_MODE_SOLID_COLOR, | 11 | BACKGROUND_MODE_SOLID_COLOR, |
12 | BACKGROUND_MODE_INVALID, | ||
12 | }; | 13 | }; |
13 | 14 | ||
15 | enum background_mode parse_background_mode(const char *mode); | ||
14 | cairo_surface_t *load_background_image(const char *path); | 16 | cairo_surface_t *load_background_image(const char *path); |
15 | void render_background_image(cairo_t *cairo, cairo_surface_t *image, | 17 | void render_background_image(cairo_t *cairo, cairo_surface_t *image, |
16 | enum background_mode mode, int buffer_width, int buffer_height, | 18 | enum background_mode mode, int buffer_width, int buffer_height); |
17 | int buffer_scale); | ||
18 | 19 | ||
19 | #endif | 20 | #endif |