de-e_comp_get()-ify e_scale
authorChris Michael <cp.michael@samsung.com>
Tue, 27 Jan 2015 17:52:13 +0000 (12:52 -0500)
committerChris Michael <cp.michael@samsung.com>
Tue, 27 Jan 2015 17:52:13 +0000 (12:52 -0500)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/bin/e_scale.c

index 3eb1b0bdd5e028a44ecb543353ae70f5ef9776b8..fc3df872b2e2d5611e0546a24c7d2e8b4a15a91b 100644 (file)
@@ -23,7 +23,7 @@ e_scale_update(void)
    if (e_config->scale.use_dpi)
      {
 #ifndef HAVE_WAYLAND_ONLY
-        if (e_comp_get(NULL)->comp_type == E_PIXMAP_TYPE_X)
+        if (e_comp->comp_type == E_PIXMAP_TYPE_X)
           e_scale = (double)ecore_x_dpi_get() / (double)e_config->scale.base_dpi;
 #endif
         if (e_scale > e_config->scale.max) e_scale = e_config->scale.max;