forked from enlightenment/enlightenment
make e_scale get the dpi for wayland also
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
9e2d4c85c3
commit
efd406edab
|
@ -25,6 +25,9 @@ e_scale_update(void)
|
|||
#ifndef HAVE_WAYLAND_ONLY
|
||||
if (e_comp->comp_type == E_PIXMAP_TYPE_X)
|
||||
e_scale = (double)ecore_x_dpi_get() / (double)e_config->scale.base_dpi;
|
||||
#else
|
||||
if (e_comp->comp_type == E_PIXMAP_TYPE_WL)
|
||||
e_scale = (double)ecore_wl_dpi_get() / (double)e_config->scale.base_dpi;
|
||||
#endif
|
||||
if (e_scale > e_config->scale.max) e_scale = e_config->scale.max;
|
||||
else if (e_scale < e_config->scale.min)
|
||||
|
|
Loading…
Reference in New Issue