summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <sandmann@redhat.com>2009-05-10 23:27:56 -0400
committerSøren Sandmann Pedersen <sandmann@redhat.com>2009-05-10 23:27:56 -0400
commitebfd6688d1927288155221e7a78fbca9f9293952 (patch)
tree1f02769f8c92986fc12e46469737c232ed5865e1 /render
parent1e816065e5ec3b9394dc1fa5815457a664e15fd9 (diff)
Make compositing with transformed windows work again.
The coordinate translation was broken in pretty much every way imaginable.
Diffstat (limited to 'render')
-rw-r--r--render/mipict.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/render/mipict.c b/render/mipict.c
index 777f111e5..c653ec4f5 100644
--- a/render/mipict.c
+++ b/render/mipict.c
@@ -358,8 +358,6 @@ miCompositeSourceValidate (PicturePtr pPicture,
if (pScreen->SourceValidate)
{
- x -= pPicture->pDrawable->x;
- y -= pPicture->pDrawable->y;
if (pPicture->transform)
{
xPoint points[4];
@@ -394,6 +392,8 @@ miCompositeSourceValidate (PicturePtr pPicture,
width = xmax - xmin;
height = ymax - ymin;
}
+ x += pPicture->pDrawable->x;
+ y += pPicture->pDrawable->y;
(*pScreen->SourceValidate) (pDrawable, x, y, width, height);
}
}