[PATCH] render: Fix clip region translations in miClipPictureSrc().

Kim Woelders kim at woelders.dk
Thu Oct 1 14:00:19 PDT 2009


Signed-off-by: Kim Woelders <kim at woelders.dk>
---
 render/mipict.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/render/mipict.c b/render/mipict.c
index 71f3de7..25437bb 100644
--- a/render/mipict.c
+++ b/render/mipict.c
@@ -318,14 +318,14 @@ miClipPictureSrc (RegionPtr	pRegion,
 	Bool result;
 	
 	pixman_region_translate ( pPicture->clientClip,
-				  pPicture->clipOrigin.x - dx,
-				  pPicture->clipOrigin.y - dy);
+				  dx - pPicture->clipOrigin.x,
+				  dy - pPicture->clipOrigin.y);
 
 	result = REGION_INTERSECT (pScreen, pRegion, pRegion, pPicture->clientClip);
 	
 	pixman_region_translate ( pPicture->clientClip,
-				  - (pPicture->clipOrigin.x - dx),
-				  - (pPicture->clipOrigin.y - dy));
+				  - (dx - pPicture->clipOrigin.x),
+				  - (dy - pPicture->clipOrigin.y));
 
 	if (!result)
 	    return FALSE;
-- 
1.6.5.rc2


------------9SWLQcSSTG1RDT5RnYHJnT--



More information about the xorg-devel mailing list