summaryrefslogtreecommitdiff
path: root/fb/fbtrap.c
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <sandmann@redhat.com>2009-06-13 10:28:21 -0400
committerSøren Sandmann Pedersen <sandmann@redhat.com>2009-06-18 12:36:11 -0400
commite9aa61e9f0d663d5b34a397b943b4d1df44e873d (patch)
tree6e9db60321ec4f624b78655e07b948e3de87a8eb /fb/fbtrap.c
parentd9b5e77a0e48a16c53653b56bc61a0b8dc4122a1 (diff)
Fix clipping when windows are used as sources
The new clipping rules: - client clips happen after transformation - pixels unavailable due to the hierarchy are undefined The first one is implemented in pixman; the second one is realized by making a copy of window sources (to prevent out-of-bounds access).
Diffstat (limited to 'fb/fbtrap.c')
-rw-r--r--fb/fbtrap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fb/fbtrap.c b/fb/fbtrap.c
index 830603ae7..b1e1eff4a 100644
--- a/fb/fbtrap.c
+++ b/fb/fbtrap.c
@@ -40,7 +40,7 @@ fbAddTraps (PicturePtr pPicture,
int ntrap,
xTrap *traps)
{
- pixman_image_t *image = image_from_pict (pPicture, FALSE);
+ pixman_image_t *image = image_from_pict (pPicture, FALSE, FALSE);
if (!image)
return;
@@ -56,7 +56,7 @@ fbRasterizeTrapezoid (PicturePtr pPicture,
int x_off,
int y_off)
{
- pixman_image_t *image = image_from_pict (pPicture, FALSE);
+ pixman_image_t *image = image_from_pict (pPicture, FALSE, FALSE);
if (!image)
return;