[Commit] Xft xftdraw.c,1.28,1.29
Keith Packard
commit at keithp.com
Tue Jun 17 11:37:28 PDT 2003
Committed by: keithp
Update of /local/src/CVS/Xft
In directory home.keithp.com:/tmp/cvs-serv6653
Modified Files:
xftdraw.c
Log Message:
Bug 92 - XftDrawSetCliipRectangles early return
Index: xftdraw.c
===================================================================
RCS file: /local/src/CVS/Xft/xftdraw.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- xftdraw.c 1 May 2003 00:13:17 -0000 1.28
+++ xftdraw.c 17 Jun 2003 17:37:26 -0000 1.29
@@ -916,7 +916,10 @@
/*
* Check for quick exit
*/
- if (draw->clip_type == XftClipTypeRectangles &&
+ if (draw->clip_type == XftClipTypeRectangles &&
+ draw->clip.rect->n == n &&
+ (n == 0 || (draw->clip.rect->xOrigin == xOrigin &&
+ draw->clip.rect->yOrigin == yOrigin)) &&
!memcmp (XftClipRects (draw->clip.rect), rects, n * sizeof (XRectangle)))
{
return True;
More information about the Commit
mailing list