From b2226ac6551f18275fadbcb3bc16a06d2a3dd97f Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 5 Sep 2016 11:36:48 -0400 Subject: Add client support for HiDPI This adds HiDPI support to swaybar, swaybg, and swaylock. --- include/client/window.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/client/window.h') 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); -- cgit v1.2.3-54-g00ecf