[cairo] [PATCH 3/6] [gl] Clear the is_clear flag on the temporary glyph mask we create.
Eric Anholt
eric at anholt.net
Wed Jan 13 16:08:06 PST 2010
From: T. Zachary Laine <whatwasthataddress at gmail.com>
Normally is_clear is cleared by the caller of one of the 5 basic
entrypoints, but in this temporary surface usage nobody else can do it
for us.
Fixes ft-show-glyphs-table, user-font-rescale, and select-font-face.
---
src/cairo-gl-glyphs.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/cairo-gl-glyphs.c b/src/cairo-gl-glyphs.c
index 47a8b5d..23acf2b 100644
--- a/src/cairo-gl-glyphs.c
+++ b/src/cairo-gl-glyphs.c
@@ -575,6 +575,7 @@ _cairo_gl_surface_show_glyphs_via_mask (cairo_gl_surface_t *dst,
if (likely (status == CAIRO_STATUS_SUCCESS)) {
cairo_surface_pattern_t mask_pattern;
+ mask->is_clear = FALSE;
_cairo_pattern_init_for_surface (&mask_pattern, mask);
mask_pattern.base.has_component_alpha = has_component_alpha;
cairo_matrix_init_translate (&mask_pattern.base.matrix,
--
1.6.5.7
More information about the cairo
mailing list