summaryrefslogtreecommitdiff
path: root/src/cairo-image-surface.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2005-10-28 20:41:22 +0000
committerKeith Packard <keithp@keithp.com>2005-10-28 20:41:22 +0000
commit93cbc71a7998485d768a3b4cb4f26b2a443c81c5 (patch)
treec151145c1541e02d153b4cdff3f2844b79d55407 /src/cairo-image-surface.c
parent1540504bd66a75a2fed8352ebfe8b029b3f199dd (diff)
downloadcairo-93cbc71a7998485d768a3b4cb4f26b2a443c81c5.tar.gz
Split _cairo_operator_bounded into two separate functions _cairo_operator_bounded_by_mask and _cairo_operator_bound_by_source to distinguish between how operators use source and mask operands.
Diffstat (limited to 'src/cairo-image-surface.c')
-rw-r--r--src/cairo-image-surface.c6
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,