Fix bug in combine_mask_alpha_ca()
authorSøren Sandmann Pedersen <sandmann@redhat.com>
Thu, 6 Aug 2009 01:16:14 +0000 (21:16 -0400)
committerSøren Sandmann Pedersen <sandmann@redhat.com>
Sat, 8 Aug 2009 22:50:17 +0000 (18:50 -0400)
If the mask was 0xffffffff, the source would end up being shifted
twice by A_SHIFT.

pixman/pixman-combine.c.template

index f707fe9..c129980 100644 (file)
@@ -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;