From: Søren Sandmann Pedersen Date: Fri, 26 Jun 2009 22:58:23 +0000 (-0400) Subject: Change checks for srca == 0 to src == 0 X-Git-Tag: 1.0_branch~926 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e8addcc69a36375d1330749e00854d9651c8f8d0;p=profile%2Fivi%2Fpixman.git Change checks for srca == 0 to src == 0 It is not generally correct to bail out just because the source alpha is 0. The color channels still mig not be and in that case the correct result is: s + (1 - srca) * d = s + d which is not generally 0. --- diff --git a/pixman/pixman-arm-neon.c b/pixman/pixman-arm-neon.c index b4f9a27..b88ede8 100644 --- a/pixman/pixman-arm-neon.c +++ b/pixman/pixman-arm-neon.c @@ -1736,7 +1736,7 @@ fbCompositeSolidMask_nx8x0565neon ( // bail out if fully transparent or degenerate srca = src >> 24; - if(srca == 0) + if(src == 0) return; if(width == 0 || height == 0) return; @@ -1877,7 +1877,7 @@ fbCompositeSolid_nx0565neon ( // bail out if fully transparent srca = src >> 24; - if(srca == 0) + if(src == 0) return; if(width == 0 || height == 0) return;