X11/src/xcl xcblock.c,1.5,1.6
Jamey Sharp
xlibs-commit at pdx.freedesktop.org
Wed Sep 29 16:51:22 UTC 2004
Committed by: jamey
Update of /cvs/xlibs/X11/src/xcl
In directory gabe:/tmp/cvs-serv22031/src/xcl
Modified Files:
xcblock.c
Log Message:
2004-09-29 Jamey Sharp <jamey at minilop.net>
* src/xcl/xcblock.c:
Keith didn't like my logic, so he fixed it.
Index: xcblock.c
===================================================================
RCS file: /cvs/xlibs/X11/src/xcl/xcblock.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- xcblock.c 29 Sep 2004 16:41:46 -0000 1.5
+++ xcblock.c 29 Sep 2004 16:51:20 -0000 1.6
@@ -112,16 +112,12 @@
void _XGetXCBBufferIf(Display *dpy, enum _XBufferCondition locked)
{
- if(!dpy->xcl->lock_count)
- locked = !locked;
- if(locked)
+ if((dpy->xcl->lock_count > 0) == locked)
_XGetXCBBuffer(dpy);
}
void _XPutXCBBufferIf(Display *dpy, enum _XBufferCondition locked)
{
- if(!dpy->xcl->lock_count)
- locked = !locked;
- if(locked)
+ if((dpy->xcl->lock_count > 0) == locked)
_XPutXCBBuffer(dpy);
}
More information about the xlibs-commit
mailing list