Enable component alpha on solid masks.
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 13 Sep 2009 15:26:29 +0000 (16:26 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 13 Sep 2009 15:29:42 +0000 (16:29 +0100)
pixman/pixman-general.c

index 3ead3da..5c40103 100644 (file)
@@ -159,9 +159,9 @@ general_composite_rect  (pixman_implementation_t *imp,
         fetch_src                       &&
         fetch_mask                      &&
         mask                            &&
-        mask->common.type == BITS       &&
-        mask->common.component_alpha    &&
-        PIXMAN_FORMAT_RGB (mask->bits.format);
+        mask->common.component_alpha   &&
+        (mask->common.type == SOLID ||
+        (mask->common.type == BITS && PIXMAN_FORMAT_RGB (mask->bits.format)));
 
     if (wide)
     {