diff options
author | Benjamin Otte <otte@gnome.org> | 2009-10-18 22:12:13 +0200 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2009-10-18 22:12:13 +0200 |
commit | a2254e56474fcdf5f25232812cdbef30a2b5ea60 (patch) | |
tree | ca25402c6f7b90e1078589ffd1aa6ec8317a39c2 /src/cairo-surface-fallback.c | |
parent | 4b720d56db72d314b3b7cedb05a53321b1d0adbe (diff) |
[gstate] Apply target device offsets to patterns immediately
Previously target device offsets were applied in cairo-surface.c which
could cause bugs when paths were taken as fallbacks, as for example
pointed out by ade55037ffa596b690c6a1051394589f76eb1f48 and quick-fixed
by 79190d89853958ee8252440d35a662fabf122afd. The quick-fix is now
unnecessary and was removed.
Diffstat (limited to 'src/cairo-surface-fallback.c')
-rw-r--r-- | src/cairo-surface-fallback.c | 41 |
1 files changed, 6 insertions, 35 deletions
diff --git a/src/cairo-surface-fallback.c b/src/cairo-surface-fallback.c index 15d2a63f2..c5ef27407 100644 --- a/src/cairo-surface-fallback.c +++ b/src/cairo-surface-fallback.c @@ -984,35 +984,6 @@ _clip_to_boxes (cairo_clip_t **clip, return status; } -/* XXX _cairo_surface_backend_fill? */ -static cairo_status_t -_wrap_surface_fill (cairo_surface_t *surface, - cairo_operator_t op, - const cairo_pattern_t *source, - cairo_path_fixed_t *path, - cairo_fill_rule_t fill_rule, - double tolerance, - cairo_antialias_t antialias, - cairo_clip_t *clip) -{ - if (surface->backend->fill != NULL) { - cairo_status_t status; - - status = surface->backend->fill (surface, op, source, - path, fill_rule, - tolerance, antialias, - clip); - - if (status != CAIRO_INT_STATUS_UNSUPPORTED) - return status; - } - - return _cairo_surface_fallback_fill (surface, op, source, - path, fill_rule, - tolerance, antialias, - clip); -} - cairo_status_t _cairo_surface_fallback_paint (cairo_surface_t *surface, cairo_operator_t op, @@ -1066,12 +1037,12 @@ _cairo_surface_fallback_paint (cairo_surface_t *surface, if (clip != NULL && clip_path->prev == NULL && _cairo_operator_bounded_by_mask (op)) { - return _wrap_surface_fill (surface, op, source, - &clip_path->path, - clip_path->fill_rule, - clip_path->tolerance, - clip_path->antialias, - NULL); + return _cairo_surface_fill (surface, op, source, + &clip_path->path, + clip_path->fill_rule, + clip_path->tolerance, + clip_path->antialias, + NULL); } status = _cairo_traps_init_boxes (&traps, boxes, num_boxes); |