[PATCH] saa: Adapt to GC client clip changes in xserver 1.17

Adam Jackson ajax at redhat.com
Thu Dec 4 07:35:04 PST 2014


1.17 always stores the client clip as a region, so there's no longer a
clientClipType member to look at.  Change the code to just inspect
whether the clientClip is non-null, since that works both before and
after 1.17.

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 saa/saa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/saa/saa.c b/saa/saa.c
index f2d68e9..be9520e 100644
--- a/saa/saa.c
+++ b/saa/saa.c
@@ -349,7 +349,7 @@ saa_gc_reads_destination(DrawablePtr pDrawable, GCPtr pGC)
 {
     return ((pGC->alu != GXcopy && pGC->alu != GXclear && pGC->alu != GXset &&
 	     pGC->alu != GXcopyInverted) || pGC->fillStyle == FillStippled ||
-	    pGC->clientClipType != CT_NONE ||
+	    pGC->clientClip != NULL ||
 	    !SAA_PM_IS_SOLID(pDrawable, pGC->planemask));
 }
 
-- 
2.1.0



More information about the xorg-devel mailing list