summaryrefslogtreecommitdiff
path: root/render/picture.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2005-12-28 11:48:14 +0000
committerEric Anholt <anholt@freebsd.org>2005-12-28 11:48:14 +0000
commit08708f7d616a7c0a596fb71dd7acd76d45257fec (patch)
tree72801eec3487061267cbdbe1c2232b3c42288d5a /render/picture.c
parent31d0fdde19598ce9375cc9638ad4e2c8b5af8d9a (diff)
Merge from xserver: Make the existing ChangePictureFilter and
ChangePictureTransform screen hooks get called at appropriate times.
Diffstat (limited to 'render/picture.c')
-rw-r--r--render/picture.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/render/picture.c b/render/picture.c
index 3ed60310e..f421c8fb5 100644
--- a/render/picture.c
+++ b/render/picture.c
@@ -1460,6 +1460,9 @@ SetPictureTransform (PicturePtr pPicture,
{ 0x00000, xFixed1, 0x00000 },
{ 0x00000, 0x00000, xFixed1 },
} };
+ ScreenPtr pScreen = pPicture->pDrawable->pScreen;
+ PictureScreenPtr ps = GetPictureScreen(pScreen);
+ int result;
if (transform && memcmp (transform, &identity, sizeof (PictTransform)) == 0)
transform = 0;
@@ -1484,7 +1487,9 @@ SetPictureTransform (PicturePtr pPicture,
}
pPicture->serialNumber |= GC_CHANGE_SERIAL_BIT;
- return Success;
+ result = (*ps->ChangePictureTransform) (pPicture, transform);
+
+ return result;
}
void