fix e_scale wayland conditional defines

This commit is contained in:
Mike Blumenkrantz 2015-07-01 16:08:21 -04:00
parent 1dbe0b4eb8
commit a597b53f4c
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,8 @@ 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
#endif
#ifdef HAVE_WAYLAND
if (e_comp->comp_type == E_PIXMAP_TYPE_WL)
e_scale = (double)ecore_wl_dpi_get() / (double)e_config->scale.base_dpi;
#endif