From b132fae5e843c329d1414d1a65b2e8d66b99852f Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 14 Jul 2011 21:19:54 +0100 Subject: clip: Rudimentary support for clip-polygon extraction Step 1, fix the failings sighted recently by tracking clip-boxes as an explicit property of the clipping and of composition. Signed-off-by: Chris Wilson --- src/cairo-default-context.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/cairo-default-context.c') diff --git a/src/cairo-default-context.c b/src/cairo-default-context.c index cec8016f2..1798e5c10 100644 --- a/src/cairo-default-context.c +++ b/src/cairo-default-context.c @@ -131,7 +131,7 @@ _cairo_default_context_push_group (void *abstract_cr, cairo_content_t content) cairo_status_t status; clip = _cairo_gstate_get_clip (cr->gstate); - if (clip->all_clipped) { + if (_cairo_clip_is_all_clipped (clip)) { group_surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 0, 0); status = group_surface->status; if (unlikely (status)) @@ -276,7 +276,8 @@ _cairo_default_context_set_source_rgba (void *abstract_cr, double red, double gr cairo_pattern_t *pattern; cairo_status_t status; - if (_current_source_matches_solid (cr->gstate->source, red, green, blue, 1.)) + if (_current_source_matches_solid (cr->gstate->source, + red, green, blue, alpha)) return CAIRO_STATUS_SUCCESS; /* push the current pattern to the freed lists */ -- cgit v1.2.3