summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Woelders <kim@woelders.dk>2009-10-02 19:31:15 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2009-10-06 18:58:48 +1000
commitf496e0042b1174d8831f061cd156ac7bbbb76a7c (patch)
tree7bafc477fde52166728fca7ff14a730028bb2f16
parent5bc90ffdee0e95727767ce3df9154ea3ff3d6f95 (diff)
render: Fix clip region translation in miClipPictureSrc().
Signed-off-by: Kim Woelders <kim@woelders.dk> Reviewed-by: Soren Sandmann Pedersen <sandmann@redhat.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit cbc886a3513079c084fb7ce47b87c3e5bba19f3f)
-rw-r--r--render/mipict.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/render/mipict.c b/render/mipict.c
index 71f3de718..b5dfcb2ba 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);
+ pPicture->clipOrigin.x + dx,
+ pPicture->clipOrigin.y + dy);
result = REGION_INTERSECT (pScreen, pRegion, pRegion, pPicture->clientClip);
pixman_region_translate ( pPicture->clientClip,
- - (pPicture->clipOrigin.x - dx),
- - (pPicture->clipOrigin.y - dy));
+ - (pPicture->clipOrigin.x + dx),
+ - (pPicture->clipOrigin.y + dy));
if (!result)
return FALSE;