summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-09-08 19:02:04 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-09-08 19:02:04 +0100
commit4b221bd49a0c2c980a63779d905e8eb9b9cfa690 (patch)
treea54b91589e416ec7215cb0f89292f8315eacf0c5
parent9389cb78a8ea5b6579d091ab1030ab9f1b13efc2 (diff)
[spans] Correct offsets for trapezoids
Pass on the destination offset from composite_trapezoids() to composite_polygon().
-rw-r--r--src/cairo-spans.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-spans.c b/src/cairo-spans.c
index 1a516347..af3b85ff 100644
--- a/src/cairo-spans.c
+++ b/src/cairo-spans.c
@@ -102,8 +102,8 @@ _cairo_surface_composite_trapezoids_as_polygon (cairo_surface_t *surface,
rects.src.x = src_x;
rects.src.y = src_y;
- rects.dst.x = 0;
- rects.dst.y = 0;
+ rects.dst.x = dst_x;
+ rects.dst.y = dst_y;
rects.mask.x = dst_x;
rects.mask.y = dst_y;
rects.width = width;