summaryrefslogtreecommitdiff
path: root/src/cairo-traps.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-08-29 14:15:07 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-08-29 17:12:31 +0100
commit8a323d7c8998f308fc222d65badb1289e3f7fb54 (patch)
treee8da2aef5f951e485098a9efd46c49e1d2bc4ba2 /src/cairo-traps.c
parent21225a7163bc93d34d3e395c840faaba24046bb6 (diff)
downloadcairo-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-traps.c')
-rw-r--r--src/cairo-traps.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/cairo-traps.c b/src/cairo-traps.c
index d6fec2602..70d4c69e0 100644
--- a/src/cairo-traps.c
+++ b/src/cairo-traps.c
@@ -264,9 +264,7 @@ _cairo_traps_tessellate_rectangle (cairo_traps_t *traps,
continue;
_left = left;
- if (_left.p1.x <= limits->p1.x &&
- _left.p2.x <= limits->p1.x)
- {
+ if (_left.p1.x < limits->p1.x) {
_left.p1.x = limits->p1.x;
_left.p1.y = limits->p1.y;
_left.p2.x = limits->p1.x;
@@ -274,9 +272,7 @@ _cairo_traps_tessellate_rectangle (cairo_traps_t *traps,
}
_right = right;
- if (_right.p1.x >= limits->p2.x &&
- _right.p2.x >= limits->p2.x)
- {
+ if (_right.p1.x > limits->p2.x) {
_right.p1.x = limits->p2.x;
_right.p1.y = limits->p1.y;
_right.p2.x = limits->p2.x;