michael@0: commit d14b8c688f4cbe6c9289955d9ce7257c07869f9e michael@0: Author: Jeff Muizelaar michael@0: Date: Wed May 6 10:19:04 2009 -0400 michael@0: michael@0: create getter for component alpha michael@0: michael@0: diff --git a/gfx/cairo/libpixman/src/pixman-image.c b/gfx/cairo/libpixman/src/pixman-image.c michael@0: index e80c479..2c49f92 100644 michael@0: --- a/gfx/cairo/libpixman/src/pixman-image.c michael@0: +++ b/gfx/cairo/libpixman/src/pixman-image.c michael@0: @@ -563,6 +563,11 @@ pixman_image_set_component_alpha (pixman_image_t *image, michael@0: image->common.component_alpha = component_alpha; michael@0: } michael@0: michael@0: +PIXMAN_EXPORT pixman_bool_t michael@0: +pixman_image_get_component_alpha (pixman_image_t *image) michael@0: +{ michael@0: + return image->common.component_alpha; michael@0: +} michael@0: michael@0: PIXMAN_EXPORT void michael@0: pixman_image_set_accessors (pixman_image_t *image, michael@0: diff --git a/gfx/cairo/libpixman/src/pixman.h b/gfx/cairo/libpixman/src/pixman.h michael@0: index 49c39d5..522a866 100644 michael@0: --- a/gfx/cairo/libpixman/src/pixman.h michael@0: +++ b/gfx/cairo/libpixman/src/pixman.h michael@0: @@ -767,6 +767,7 @@ void pixman_image_set_alpha_map (pixman_image_t michael@0: int16_t y); michael@0: void pixman_image_set_component_alpha (pixman_image_t *image, michael@0: pixman_bool_t component_alpha); michael@0: +pixman_bool_t pixman_image_get_component_alpha (pixman_image_t *image); michael@0: void pixman_image_set_accessors (pixman_image_t *image, michael@0: pixman_read_memory_func_t read_func, michael@0: pixman_write_memory_func_t write_func);