diff options
author | Eric Anholt <anholt@FreeBSD.org> | 2006-06-30 03:01:14 +0200 |
---|---|---|
committer | Eric Anholt <anholt@FreeBSD.org> | 2006-07-03 16:40:11 +0200 |
commit | 6ef457913955d4289081c7d07d528963ccf5272c (patch) | |
tree | aff7baf056043289be112cdcb9f3e6160f2e3ce3 /render/picturestr.h | |
parent | 50a3e1ad18c815a5adafee22beccdf970bae62d6 (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.h | 5 |
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; |