summaryrefslogtreecommitdiff
path: root/render/picturestr.h
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2006-06-30 03:01:14 +0200
committerEric Anholt <anholt@FreeBSD.org>2006-07-03 16:40:11 +0200
commit6ef457913955d4289081c7d07d528963ccf5272c (patch)
treeaff7baf056043289be112cdcb9f3e6160f2e3ce3 /render/picturestr.h
parent50a3e1ad18c815a5adafee22beccdf970bae62d6 (diff)
Bug #7366: Fix two crashes in operations on source pictures.
A screen's ChangePictureTransform now isn't called when changing the transform, as source pictures aren't associated with screens. Also, attempting to set an AlphaMap to a source picture will fail with BadMatch just like a Window would, preventing another crash.
Diffstat (limited to 'render/picturestr.h')
-rw-r--r--render/picturestr.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/render/picturestr.h b/render/picturestr.h
index 1ea91201e..25969a622 100644
--- a/render/picturestr.h
+++ b/render/picturestr.h
@@ -349,7 +349,12 @@ typedef struct _PictureScreen {
PictFilterAliasPtr filterAliases;
int nfilterAliases;
+ /**
+ * Called immediately after a picture's transform is changed through the
+ * SetPictureTransform request. Not called for source-only pictures.
+ */
ChangePictureTransformProcPtr ChangePictureTransform;
+
ChangePictureFilterProcPtr ChangePictureFilter;
DestroyPictureFilterProcPtr DestroyPictureFilter;