[cairo-commit] src/cairo-quartz-surface.c
Andrea Canciani
ranma42 at kemper.freedesktop.org
Sat Aug 7 03:21:45 PDT 2010
src/cairo-quartz-surface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 056ce165c4377e9cf93fd7a06b6b0d5d4d98cb8c
Author: Andrea Canciani <ranma42 at gmail.com>
Date: Tue Jul 27 18:50:55 2010 +0200
quartz: fix solid masking fallback
Falling back when painting would ignore the alpha value (which is
needed to have the correct mask opacity).
_cairo_quartz_surface_paint_cg doesn't fallback, so the usual mask
fallback path is now taken, as expected.
diff --git a/src/cairo-quartz-surface.c b/src/cairo-quartz-surface.c
index 70cddeb..7360610 100644
--- a/src/cairo-quartz-surface.c
+++ b/src/cairo-quartz-surface.c
@@ -2818,7 +2818,7 @@ _cairo_quartz_surface_mask_cg (void *abstract_surface,
cairo_solid_pattern_t *solid_mask = (cairo_solid_pattern_t *) mask;
CGContextSetAlpha (surface->cgContext, solid_mask->color.alpha);
- rv = _cairo_quartz_surface_paint (surface, op, source, clip);
+ rv = _cairo_quartz_surface_paint_cg (surface, op, source, clip);
CGContextSetAlpha (surface->cgContext, 1.0);
return rv;
More information about the cairo-commit
mailing list