diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-07-12 16:06:32 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-07-12 16:33:38 +0100 |
commit | 679e5a600bd7dae6cbde83070fb1f7355f8025a7 (patch) | |
tree | 97cab6a3ba733d77e61a128036d3b495b8db9e0d /src/cairo-surface-fallback.c | |
parent | 8546a877889bfafc056c867bc9aea25e9fdcdef0 (diff) | |
download | cairo-679e5a600bd7dae6cbde83070fb1f7355f8025a7.tar.gz |
Differentiate between reducing clip to composite extents and a rectangle
This is required for handling glyphs when rendering directly to the
surface.
Diffstat (limited to 'src/cairo-surface-fallback.c')
-rw-r--r-- | src/cairo-surface-fallback.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cairo-surface-fallback.c b/src/cairo-surface-fallback.c index 1edeac032..99ea07e7d 100644 --- a/src/cairo-surface-fallback.c +++ b/src/cairo-surface-fallback.c @@ -903,7 +903,7 @@ _cairo_surface_fallback_paint (cairo_surface_t *surface, if (unlikely (status)) return status; - if (_cairo_clip_contains_rectangle (clip, &extents)) + if (_cairo_clip_contains_extents (clip, &extents)) clip = NULL; status = _cairo_clip_to_boxes (&clip, &extents, &clip_boxes, &num_boxes); @@ -1012,7 +1012,7 @@ _cairo_surface_fallback_mask (cairo_surface_t *surface, if (unlikely (status)) return status; - if (_cairo_clip_contains_rectangle (clip, &extents)) + if (_cairo_clip_contains_extents (clip, &extents)) clip = NULL; if (clip != NULL && extents.is_bounded) { @@ -1060,7 +1060,7 @@ _cairo_surface_fallback_stroke (cairo_surface_t *surface, if (unlikely (status)) return status; - if (_cairo_clip_contains_rectangle (clip, &extents)) + if (_cairo_clip_contains_extents (clip, &extents)) clip = NULL; status = _cairo_clip_to_boxes (&clip, &extents, &clip_boxes, &num_boxes); @@ -1153,7 +1153,7 @@ _cairo_surface_fallback_fill (cairo_surface_t *surface, if (unlikely (status)) return status; - if (_cairo_clip_contains_rectangle (clip, &extents)) + if (_cairo_clip_contains_extents (clip, &extents)) clip = NULL; status = _cairo_clip_to_boxes (&clip, &extents, &clip_boxes, &num_boxes); @@ -1326,7 +1326,7 @@ _cairo_surface_fallback_show_glyphs (cairo_surface_t *surface, if (unlikely (status)) return status; - if (_cairo_clip_contains_rectangle (clip, &extents)) + if (_cairo_clip_contains_rectangle (clip, &extents.mask)) clip = NULL; if (clip != NULL && extents.is_bounded) { |