pixman: Branch 'master'
Søren Sandmann Pedersen
sandmann at kemper.freedesktop.org
Wed May 6 18:25:36 PDT 2009
pixman/pixman-pict.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 62af131a5a7222c58ed9aac38b7dddb75c0e87f7
Author: Siarhei Siamashka <siarhei.siamashka at nokia.com>
Date: Tue May 5 15:25:43 2009 +0300
Fixed rendering bug for source alpha == 0 in OVER fastpath functions
Handling of the case when source alpha is zero was keeping destination
pixel unmodified. But this is different from how generic path behaves.
For example fbOver(0x00200483, 0x9CAC7E9F) == 0x9CCC82FF and the
destination pixel changes from 0x9CAC7E9F to 0x9CCC82FF in spite
of having zero alpha.
Signed-off-by: Søren Sandmann Pedersen <sandmann at redhat.com>
diff --git a/pixman/pixman-pict.c b/pixman/pixman-pict.c
index 1aef166..548d38d 100644
--- a/pixman/pixman-pict.c
+++ b/pixman/pixman-pict.c
@@ -653,7 +653,7 @@ fbCompositeSrc_8888x8888 (pixman_op_t op,
a = s >> 24;
if (a == 0xff)
WRITE(pDst, dst, s & dstMask);
- else if (a)
+ else if (s)
WRITE(pDst, dst, fbOver (s, READ(pDst, dst)) & dstMask);
dst++;
}
@@ -745,7 +745,7 @@ fbCompositeSrc_8888x0565 (pixman_op_t op,
{
s = READ(pSrc, src++);
a = s >> 24;
- if (a)
+ if (s)
{
if (a == 0xff)
d = s;
More information about the xorg-commit
mailing list