Initial swaylock port

This commit is contained in:
Drew DeVault 2018-04-02 22:48:13 -04:00
parent a28730edee
commit b32bf595ae
6 changed files with 327 additions and 758 deletions

View file

@ -9,11 +9,12 @@ enum background_mode {
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,
int buffer_scale);
enum background_mode mode, int buffer_width, int buffer_height);
#endif