From d937b622389797a8c605b2cc50c24ca759dc57d2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Wed, 5 Aug 2009 21:16:14 -0400 Subject: [PATCH] Fix bug in combine_mask_alpha_ca() If the mask was 0xffffffff, the source would end up being shifted twice by A_SHIFT. --- pixman/pixman-combine.c.template | 1 - 1 file changed, 1 deletion(-) diff --git a/pixman/pixman-combine.c.template b/pixman/pixman-combine.c.template index f707fe9..c129980 100644 --- a/pixman/pixman-combine.c.template +++ b/pixman/pixman-combine.c.template @@ -78,7 +78,6 @@ combine_mask_alpha_ca (const comp4_t *src, comp4_t *mask) if (a == ~0) { - x = x >> A_SHIFT; x |= x << G_SHIFT; x |= x << R_SHIFT; *(mask) = x; -- 2.7.4