Eliminate recursion from alpha map code
authorSøren Sandmann Pedersen <ssp@redhat.com>
Fri, 2 Jul 2010 15:58:23 +0000 (11:58 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Sun, 8 Aug 2010 17:57:40 +0000 (13:57 -0400)
Alpha maps with alpha maps are no longer supported. It's not a useful
feature and it could could lead to infinite recursion.

pixman/pixman-bits-image.c

index 36ea0af..81722c2 100644 (file)
@@ -51,7 +51,7 @@ bits_image_store_scanline_32 (bits_image_t *  image,
        x -= image->common.alpha_origin_x;
        y -= image->common.alpha_origin_y;
 
-       bits_image_store_scanline_32 (image->common.alpha_map, x, y, width, buffer);
+       image->common.alpha_map->store_scanline_raw_32 (image->common.alpha_map, x, y, width, buffer);
     }
 }
 
@@ -69,7 +69,7 @@ bits_image_store_scanline_64 (bits_image_t *  image,
        x -= image->common.alpha_origin_x;
        y -= image->common.alpha_origin_y;
 
-       bits_image_store_scanline_64 (image->common.alpha_map, x, y, width, buffer);
+       image->common.alpha_map->store_scanline_raw_64 (image->common.alpha_map, x, y, width, buffer);
     }
 }