[Pixman] [PATCH 1/7] Eliminate recursion from alpha map code

Søren Sandmann sandmann at daimi.au.dk
Thu Jul 29 07:12:42 PDT 2010


From: Søren Sandmann Pedersen <ssp at redhat.com>

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 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pixman/pixman-bits-image.c b/pixman/pixman-bits-image.c
index 36ea0af..81722c2 100644
--- a/pixman/pixman-bits-image.c
+++ b/pixman/pixman-bits-image.c
@@ -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);
     }
 }
 
-- 
1.7.1.1



More information about the Pixman mailing list