mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 00:38:06 +02:00
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.
This commit is contained in:
parent
bdeade14ea
commit
056ce165c4
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue