diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-08-29 14:15:07 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-08-29 17:12:31 +0100 |
commit | 8a323d7c8998f308fc222d65badb1289e3f7fb54 (patch) | |
tree | e8da2aef5f951e485098a9efd46c49e1d2bc4ba2 /src/cairo-surface-fallback.c | |
parent | 21225a7163bc93d34d3e395c840faaba24046bb6 (diff) | |
download | cairo-8a323d7c8998f308fc222d65badb1289e3f7fb54.tar.gz |
[clip] Apply surface offset when combining with clip mask
In order to correctly combine the clip mask with the compositing mask the
clip path must be offset so that it is relative to the destination
surface.
Diffstat (limited to 'src/cairo-surface-fallback.c')
-rw-r--r-- | src/cairo-surface-fallback.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/cairo-surface-fallback.c b/src/cairo-surface-fallback.c index 0f5f8212e..79d719dc4 100644 --- a/src/cairo-surface-fallback.c +++ b/src/cairo-surface-fallback.c @@ -163,12 +163,8 @@ _create_composite_mask_pattern (cairo_surface_pattern_t *mask_pattern, if (unlikely (status)) goto CLEANUP_SURFACE; - if (clip_surface) { - status = _cairo_clip_combine_with_surface (clip, - mask, - extents->x, - extents->y); - } + if (clip_surface) + status = _cairo_clip_combine_with_surface (clip, mask, extents); _cairo_pattern_init_for_surface (mask_pattern, mask); |