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 | |
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.
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | render/picture.c | 1 |
2 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,13 @@ +2006-03-08 Lars Knoll <lars@trolltech.com> + + * 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. + 2006-03-07 Eric Anholt <anholt@FreeBSD.org> * hw/xfree86/common/xf86fbman.c: (xf86InitFBManager): 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; |