From 88f44e1a1d440ab8a5bb93dbf8fabca9ce810fdf Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Wed, 25 Feb 2015 13:13:10 -0500 Subject: [PATCH] adjust wayland compositor scale when we adjust e_scale Signed-off-by: Chris Michael --- src/bin/e_comp_wl.h | 1 + src/bin/e_hints.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/src/bin/e_comp_wl.h b/src/bin/e_comp_wl.h index a5132f1e8..32b7885c8 100644 --- a/src/bin/e_comp_wl.h +++ b/src/bin/e_comp_wl.h @@ -285,6 +285,7 @@ struct _E_Comp_Wl_Output unsigned int refresh; unsigned int subpixel; unsigned int transform; + double scale; }; EAPI Eina_Bool e_comp_wl_init(void); diff --git a/src/bin/e_hints.c b/src/bin/e_hints.c index eb9151b38..c50878421 100644 --- a/src/bin/e_hints.c +++ b/src/bin/e_hints.c @@ -1,3 +1,4 @@ +#define E_COMP_WL #include "e.h" #ifndef HAVE_WAYLAND_ONLY @@ -1664,6 +1665,12 @@ EAPI void e_hints_scale_update(void) { #ifdef HAVE_WAYLAND_ONLY + Eina_List *l; + E_Comp_Wl_Output *output; + + EINA_LIST_FOREACH(e_comp->wl_comp_data->outputs, l, output) + output->scale = e_scale; + #else unsigned int scale = e_scale * 1000;