forked from enlightenment/enlightenment
adjust wayland compositor scale when we adjust e_scale
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
0ac3045827
commit
88f44e1a1d
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue