Set maskRepeat to FALSE when the function is NEED_SOLID_MASK
authorSøren Sandmann <sandmann@redhat.com>
Sun, 2 Dec 2007 02:56:25 +0000 (21:56 -0500)
committerSøren Sandmann <sandmann@redhat.com>
Sun, 2 Dec 2007 02:56:25 +0000 (21:56 -0500)
pixman/pixman-pict.c

index be8f096..53208ae 100644 (file)
@@ -1729,8 +1729,11 @@ pixman_image_composite (pixman_op_t      op,
            if (info->src_format == PIXMAN_solid)
                srcRepeat = FALSE;
 
-           if (info->mask_format == PIXMAN_solid)
+           if (info->mask_format == PIXMAN_solid       ||
+               info->flags & NEED_SOLID_MASK)
+           {
                maskRepeat = FALSE;
+           }
        }
     }