commit | d68f523f308f0966a9ccf0adeba1bd6f78ace3cd | [log] [tgz] |
---|---|---|
author | Alexander Larsson <alexl@redhat.com> | Wed May 22 14:41:33 2013 +0200 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Wed May 22 16:18:52 2013 -0400 |
tree | c0924a0c3d46aaf717ca6a516c8fbafc6366e991 | |
parent | c584fa60d45b333ab7f2c1d34e75994d58d1f7f8 [diff] [blame] |
window: Add window_get_output_scale() This lets you find the maximal scale for all the outputs a window is on, which is useful for picking a buffer_scale.
diff --git a/clients/window.h b/clients/window.h index fec601f..f7b3f28 100644 --- a/clients/window.h +++ b/clients/window.h
@@ -260,6 +260,9 @@ window_set_buffer_scale(struct window *window, uint32_t scale); +uint32_t +window_get_output_scale(struct window *window); + void window_destroy(struct window *window);