Use pkg-config to find libXCBxtest in the Makefile for the xtest test application.
[free-sw/xcb/demo] / rendertest.c
index 9a2840d..1daf5a7 100644 (file)
@@ -126,7 +126,7 @@ int draw_window(XCBConnection *conn, XCBRenderQueryPictFormatsRep *reply)
     XCBRenderPOINTFIX        trifans[9];
     int index;
 
-    root = XCBConnSetupSuccessRepRootsIter(XCBGetSetup(c)).data;
+    root = XCBSetupRootsIter(XCBGetSetup(c)).data;
     root_drawable.window = root->root;
    
     /* Setting query so that it will search for an 8 bit alpha surface. */
@@ -186,7 +186,7 @@ int draw_window(XCBConnection *conn, XCBRenderQueryPictFormatsRep *reply)
             0, 0,   /* x and y */
             600, 600,   /* width and height */
             0,  /* border width */
-            InputOutput,    /* class */
+            XCBWindowClassInputOutput,    /* class */
             root->root_visual,   /* XCBVISUALID */
             value_mask, value_list); /* LISTofVALUES */