When fetching from an alpha map, use the alpha map's fetch function.
authorSøren Sandmann Pedersen <sandmann@redhat.com>
Sat, 16 Jan 2010 15:07:48 +0000 (10:07 -0500)
committerSøren Sandmann Pedersen <sandmann@redhat.com>
Sun, 17 Jan 2010 21:47:15 +0000 (16:47 -0500)
Don't use the one from the image. This is the first half of bug 25950.

pixman/pixman-bits-image.c

index 5a5a690..fb1af92 100644 (file)
@@ -115,7 +115,7 @@ bits_image_fetch_pixel_alpha (bits_image_t *image, int x, int y)
     }
     else
     {
-       pixel_a = image->fetch_pixel_raw_32 (
+       pixel_a = image->common.alpha_map->fetch_pixel_raw_32 (
            image->common.alpha_map, x, y);
        pixel_a = ALPHA_8 (pixel_a);
     }