From cbc886a3513079c084fb7ce47b87c3e5bba19f3f Mon Sep 17 00:00:00 2001 From: Kim Woelders Date: Fri, 2 Oct 2009 19:31:15 +0200 Subject: render: Fix clip region translation in miClipPictureSrc(). Signed-off-by: Kim Woelders Reviewed-by: Soren Sandmann Pedersen Signed-off-by: Peter Hutterer --- render/mipict.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'render') 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; -- cgit v1.2.3