diff options
author | Drew DeVault <ddevault@linode.com> | 2016-09-05 11:36:48 -0400 |
---|---|---|
committer | Drew DeVault <ddevault@linode.com> | 2016-09-05 11:36:48 -0400 |
commit | b2226ac6551f18275fadbcb3bc16a06d2a3dd97f (patch) | |
tree | 65628cb83abaa546c5f0e2cd8949c55aacb40360 /include | |
parent | 61184e3208c28b24a84aae5f5f0005311283826d (diff) | |
download | sway-b2226ac6551f18275fadbcb3bc16a06d2a3dd97f.tar.xz |
Add client support for HiDPI
This adds HiDPI support to swaybar, swaybg, and swaylock.
Diffstat (limited to 'include')
-rw-r--r-- | include/client/window.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/client/window.h b/include/client/window.h index 296dd9ed..fbfbbc5f 100644 --- a/include/client/window.h +++ b/include/client/window.h @@ -51,12 +51,14 @@ struct window { struct wl_callback *frame_cb; struct cursor cursor; uint32_t width, height; + int32_t scale; char *font; cairo_t *cairo; struct pointer_input pointer_input; }; -struct window *window_setup(struct registry *registry, uint32_t width, uint32_t height, bool shell_surface); +struct window *window_setup(struct registry *registry, uint32_t width, uint32_t height, + int32_t scale, bool shell_surface); void window_teardown(struct window *state); int window_prerender(struct window *state); int window_render(struct window *state); |