From e8addcc69a36375d1330749e00854d9651c8f8d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Fri, 26 Jun 2009 18:58:23 -0400 Subject: [PATCH] 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. --- pixman/pixman-arm-neon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.7.4