[Xcb-commit] xcb-demo

Ian Osgood iano at kemper.freedesktop.org
Sun Mar 19 11:32:17 PST 2006


 xcb-demo/neko/xcbneko.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

New commits:
diff-tree 3f905a20421cbc588dbec547c5dab739d8182985 (from 25133fa15f79d49f4becf6b4902653c0b61a6abe)
Author: Ian Osgood <iosgood at Titania.local>
Date:   Sun Mar 19 11:31:26 2006 -0800

    Use XCBFlush not XCBSync

diff --git a/xcb-demo/neko/xcbneko.c b/xcb-demo/neko/xcbneko.c
index 5eff1ce..a10b9e1 100644
--- a/xcb-demo/neko/xcbneko.c
+++ b/xcb-demo/neko/xcbneko.c
@@ -509,7 +509,7 @@ void  InitBitmapAndGCs(void) {
   
   /* later: XCBFreePixmap( c, bitmap ); */
   /* later: XCBFreeGC( c, gc ); */
-  XCBSync( xc, NULL );
+  XCBFlush( xc );
 }
 
 void
@@ -697,7 +697,7 @@ InitScreen( char *DisplayName, char *the
 
   InitBitmapAndGCs();
 
-  XCBSync(xc, NULL);
+  XCBFlush(xc);
 }
 
 
@@ -744,7 +744,7 @@ SetNekoState( int SetValue )
 }
 
 /* FillRct.c */
-/*   Xlib does merging of requests, but the Sync and frequent DrawGC changes
+/*   Xlib does merging of requests, but the Flush and frequent DrawGC changes
      defeat this mechanism */
 
 void
@@ -767,7 +767,7 @@ DrawNeko( int x, int y, XCBGCONTEXT Draw
 
   XCBPolyFillRectangle( xc, drawable, DrawGC, 1, &rect );
 
-  XCBSync( xc, NULL );
+  XCBFlush( xc );
 
   NekoLastX = x;
   NekoLastY = y;
@@ -782,7 +782,7 @@ void  RedrawNeko(void) {
 
   XCBPolyFillRectangle( xc, drawable, NekoLastGC, 1, &rect );
 
-  XCBSync( xc, NULL );
+  XCBFlush( xc );
 }
 
 


More information about the xcb-commit mailing list