diff options
Diffstat (limited to 'src/cairo-image-surface.c')
-rw-r--r-- | src/cairo-image-surface.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cairo-image-surface.c b/src/cairo-image-surface.c index 20d14c170..c05dfeb60 100644 --- a/src/cairo-image-surface.c +++ b/src/cairo-image-surface.c @@ -620,9 +620,7 @@ _cairo_image_surface_composite (cairo_operator_t operator, width, height); } - if (!_cairo_operator_bounded (operator) || - operator == CAIRO_OPERATOR_SOURCE || - operator == CAIRO_OPERATOR_CLEAR) + if (!_cairo_operator_bounded_by_source (operator)) status = _cairo_surface_composite_fixup_unbounded (&dst->base, &src_attr, src->width, src->height, mask ? &mask_attr : NULL, @@ -785,7 +783,7 @@ _cairo_image_surface_composite_trapezoids (cairo_operator_t operator, dst_x, dst_y, width, height); - if (!_cairo_operator_bounded (operator)) + if (!_cairo_operator_bounded_by_mask (operator)) status = _cairo_surface_composite_shape_fixup_unbounded (&dst->base, &attributes, src->width, src->height, width, height, |