summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-12-01 16:40:36 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-12-01 16:40:36 +0000
commit45cf81dc1d409d42763db370bd1644353daa3f92 (patch)
tree1572e68606e57bcb449a99edd180ebbce1f7fc27
parent4b87781bae4a6ea70e5b6f38683e7c2ea0fd2c27 (diff)
downloadenlightenment-45cf81dc1d409d42763db370bd1644353daa3f92.tar.gz
e scale - use dpi reported by e_scale_dpi_get in scale dialog
-rw-r--r--src/modules/conf_theme/e_int_config_scale.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/modules/conf_theme/e_int_config_scale.c b/src/modules/conf_theme/e_int_config_scale.c
index b4e75016fb..8612f33dd4 100644
--- a/src/modules/conf_theme/e_int_config_scale.c
+++ b/src/modules/conf_theme/e_int_config_scale.c
@@ -311,21 +311,7 @@ _adv_create(E_Config_Dialog *cfd EINA_UNUSED, Evas *evas, E_Config_Dialog_Data *
e_widget_on_change_hook_set(ow, _adv_policy_changed, cfdata);
e_widget_list_object_append(o, ow, 1, 1, 0.5);
-#ifndef HAVE_WAYLAND_ONLY
- if (e_comp->comp_type == E_PIXMAP_TYPE_X)
- dpi = ecore_x_dpi_get();
-#endif
-#ifdef HAVE_WAYLAND
- if (e_comp->comp_type == E_PIXMAP_TYPE_WL)
- {
- int xdpi = 0, ydpi = 0;
-
- ecore_evas_screen_dpi_get(e_comp->ee, &xdpi, &ydpi);
- if (xdpi == 0) xdpi = 75;
- if (ydpi == 0) ydpi = 75;
- dpi = ((xdpi + ydpi) / 2);
- }
-#endif
+ dpi = e_scale_dpi_get();
snprintf(buff, sizeof(buff), _("Base DPI (Currently %i DPI)"), dpi);