[Xcb-commit] tutorial.mdwn

XCB site xcb at freedesktop.org
Thu Nov 6 17:27:33 PST 2008


 tutorial.mdwn |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e943448c8bfff3d9f38131bb6cfbe98b43aef18c
Author: XCB site <xcb at freedesktop.org>
Date:   Thu Nov 6 17:27:31 2008 -0800

    web commit by ppl: simplify Xlib in code example

diff --git a/tutorial.mdwn b/tutorial.mdwn
index 9cc865b..0a598c6 100644
--- a/tutorial.mdwn
+++ b/tutorial.mdwn
@@ -210,7 +210,7 @@ Here is a program that computes the time to create 500 atoms with Xlib and XCB.
     	double start, XlibTime, XCBBadTime, XCBGoodTime;
     
     	/* test Xlib */
-    	Display *display = XOpenDisplay (getenv("DISPLAY"));
+    	Display *display = XOpenDisplay (NULL);
     	start = get_time ();
     	useXlib (names, display);
     	XlibTime = get_time () - start;


More information about the xcb-commit mailing list