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@redhat.com>
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++;
}
{
s = READ(pSrc, src++);
a = s >> 24;
- if (a)
+ if (s)
{
if (a == 0xff)
d = s;