OSDN Git Service

test/putsurface_x11.c: don't hard code the DISPLAY to ":0.0"
authorAustin Yuan <shengquan.yuan@gmail.com>
Wed, 6 Feb 2013 03:28:59 +0000 (11:28 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Tue, 28 May 2013 08:46:49 +0000 (16:46 +0800)
Signed-off-by: Austin Yuan <shengquan.yuan@gmail.com>
test/putsurface/putsurface_x11.c

index a89d914..db765af 100644 (file)
@@ -41,7 +41,7 @@ static int check_window_event(void *x11_display, void *drawable, int *width, int
 
 static void *open_display(void)
 {
-    return XOpenDisplay(":0.0");
+    return XOpenDisplay(NULL);
 }
 
 static void close_display(void *win_display)