summaryrefslogtreecommitdiff
path: root/miext
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2004-08-15 03:34:18 +0000
committerKeith Packard <keithp@keithp.com>2004-08-15 03:34:18 +0000
commit1e728c3e88f6a74b93dc11827c9fcfe7b39ca5a5 (patch)
tree3a63ec7b7c0493ac63cd2b3cd4f13d3071f9f304 /miext
parent943308517905d16bda1bb27cd745bd291a84dbf6 (diff)
Copy bits from parent window when allocating pixmaps so that Background ==
None works. Copy filter to backing picture during validation. Mark picture serialNumber when setting Filter or Transform so Validate occurs. Initialize xf86Screens[i]->pScreen to NULL so that RADEON driver doesn't crash during server reset using old pScreen.
Diffstat (limited to 'miext')
-rw-r--r--miext/cw/cw_render.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/miext/cw/cw_render.c b/miext/cw/cw_render.c
index 01e2bc468..f7e361496 100644
--- a/miext/cw/cw_render.c
+++ b/miext/cw/cw_render.c
@@ -207,8 +207,22 @@ cwValidatePicture (PicturePtr pPicture,
pBackingPicture = pPicturePrivate->pBackingPicture;
+ /*
+ * Always copy transform and filters because there's no
+ * indication of when they've changed
+ */
SetPictureTransform(pBackingPicture, pPicture->transform);
- /* XXX Set filters */
+
+ if (pBackingPicture->filter != pPicture->filter ||
+ pPicture->filter_nparams > 0)
+ {
+ char *filter = PictureGetFilterName (pPicture->filter);
+
+ SetPictureFilter(pBackingPicture,
+ filter, strlen (filter),
+ pPicture->filter_params,
+ pPicture->filter_nparams);
+ }
pPicturePrivate->stateChanges |= mask;