fix component-alpha versions to set source to 0 when mask is 0
authorBenjamin Otte <otte@gnome.org>
Tue, 25 Nov 2008 21:53:37 +0000 (22:53 +0100)
committerSøren Sandmann Pedersen <sandmann@redhat.com>
Tue, 23 Jun 2009 18:42:35 +0000 (14:42 -0400)
pixman/pixman-combine.c.template

index 0e62744..5e86011 100644 (file)
@@ -450,10 +450,11 @@ fbCombine ## name ## C (pixman_implementation_t *imp, pixman_op_t op, \
        comp1_t ida = ~da;                          \
        comp4_t result;                             \
                                                    \
+       fbCombineMaskValueC (&s, &m);               \
+                                                   \
         if (m == 0)                                \
            continue;                               \
                                                    \
-       fbCombineMaskValueC (&s, &m);               \
        result = d;                                 \
        FbByteAddMulC (result, ~m, s, ida);         \
                                                    \