discomfitor pushed a commit to branch enlightenment-0.20.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=b8a7b2b93fc79082d02b3a4c240f0590482c6166

commit b8a7b2b93fc79082d02b3a4c240f0590482c6166
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Thu Oct 22 11:55:51 2015 -0400

    port e_scale to use Ecore_Wl2
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/bin/e_scale.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/bin/e_scale.c b/src/bin/e_scale.c
index 9c13dec..0a3948b 100644
--- a/src/bin/e_scale.c
+++ b/src/bin/e_scale.c
@@ -27,8 +27,12 @@ e_scale_update(void)
           e_scale = (double)ecore_x_dpi_get() / 
(double)e_config->scale.base_dpi;
 #endif
 #ifdef HAVE_WAYLAND
+        /* FIXME: This needs to get the DPI from a given output */
         if (e_comp->comp_type == E_PIXMAP_TYPE_WL)
-          e_scale = (double)ecore_wl_dpi_get() / 
(double)e_config->scale.base_dpi;
+          {
+             e_scale = (double)ecore_wl2_output_dpi_get(NULL) /
+               (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)

-- 


Reply via email to