aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-04-02 22:48:13 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-04-04 18:47:48 -0400
commitb32bf595aeae7f8ac68354e45a80c0438374ec17 (patch)
treeb93185d2ac4b7081b9d0651eaaadeae21de48929 /include
parentMove swaybg background rendering into common/ (diff)
downloadsway-b32bf595aeae7f8ac68354e45a80c0438374ec17.tar.gz
sway-b32bf595aeae7f8ac68354e45a80c0438374ec17.tar.zst
sway-b32bf595aeae7f8ac68354e45a80c0438374ec17.zip
Initial swaylock port
Diffstat (limited to 'include')
-rw-r--r--include/background-image.h5
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
15enum background_mode parse_background_mode(const char *mode);
14cairo_surface_t *load_background_image(const char *path); 16cairo_surface_t *load_background_image(const char *path);
15void render_background_image(cairo_t *cairo, cairo_surface_t *image, 17void 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