diff options
author | Lars Knoll <lars@trolltech.com> | 2006-03-08 06:19:37 +0000 |
---|---|---|
committer | Lars Knoll <lars@trolltech.com> | 2006-03-08 06:19:37 +0000 |
commit | 65aa33f9173b1554924437685698f7c5f645a3c4 (patch) | |
tree | 9d8cd3858c3a937b18a0973d5a5d2747132e235d /render | |
parent | cb5090e8d60f4e9780c859faeea5c24587f6bee7 (diff) |
render/picture.c Initialize the format of a source picture to
PICT_a8r8g8b8. Fixes a failure in the gradients test of rendercheck. In
the long term we could do better by setting the format to something
without alpha whenever the gradient doesn't contain colors with alpha.
This triggers a reduction of the over operation to a pure source
operation.
Diffstat (limited to 'render')
-rw-r--r-- | render/picture.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/render/picture.c b/render/picture.c index 299bded3f..8d4d77e36 100644 --- a/render/picture.c +++ b/render/picture.c @@ -977,6 +977,7 @@ static PicturePtr createSourcePicture(void) PicturePtr pPicture; pPicture = (PicturePtr) xalloc(sizeof(PictureRec)); pPicture->pDrawable = 0; + pPicture->format = PICT_a8r8g8b8; pPicture->pFormat = 0; pPicture->pNext = 0; pPicture->devPrivates = 0; |