raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=2be17655fa591b83cbb1562a9166bc9d6b8acf05

commit 2be17655fa591b83cbb1562a9166bc9d6b8acf05
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Wed Jul 30 08:38:21 2014 +0900

    fix vsync display env var handling to be right
---
 src/lib/ecore_x/ecore_x_vsync_tool.c | 2 +-
 src/lib/ecore_x/xlib/ecore_x_vsync.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/ecore_x/ecore_x_vsync_tool.c 
b/src/lib/ecore_x/ecore_x_vsync_tool.c
index 34c9340..b858626 100644
--- a/src/lib/ecore_x/ecore_x_vsync_tool.c
+++ b/src/lib/ecore_x/ecore_x_vsync_tool.c
@@ -222,7 +222,7 @@ _svr_init(void)
    char buf[4096], *disp, *s;
 
    disp = getenv("DISPLAY");
-   if (disp) disp = ":0";
+   if (!disp) disp = ":0";
    snprintf(buf, sizeof(buf), "ecore-x-vsync-%s", disp);
    for (s = buf; *s; s++)
      {
diff --git a/src/lib/ecore_x/xlib/ecore_x_vsync.c 
b/src/lib/ecore_x/xlib/ecore_x_vsync.c
index 7aed4be..24de7de 100644
--- a/src/lib/ecore_x/xlib/ecore_x_vsync.c
+++ b/src/lib/ecore_x/xlib/ecore_x_vsync.c
@@ -410,7 +410,7 @@ _glvsync_animator_tick_source_set(void)
              ecore_con_init();
           }
         disp = getenv("DISPLAY");
-        if (disp) disp = ":0";
+        if (!disp) disp = ":0";
         snprintf(buf, sizeof(buf), "ecore-x-vsync-%s", disp);
         for (s = buf; *s; s++)
           {

-- 


Reply via email to