summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-08-27 16:21:30 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-08-29 17:07:39 +0100
commit20cdb99ae8ae0cc02193468e811b1b74b3f6d3b7 (patch)
tree40d35879e847c116026b6b4ec1e744a72e5aa7ae
parent219d46a9ebc47f99fa8fe9c6e3f0aa440309f032 (diff)
[path-fixed] Distinguish cw and ccw boxes
To correctly handle retessellating trapezods constructed from alternately wound boxes, then we need to pass that information from the path to the tessellator. We do this by switching the direction of the box if the first edge is horizontal as opposed to vertical.
-rw-r--r--src/cairo-path-fixed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-path-fixed.c b/src/cairo-path-fixed.c
index 7b2093fc..a1a8184d 100644
--- a/src/cairo-path-fixed.c
+++ b/src/cairo-path-fixed.c
@@ -1300,8 +1300,8 @@ _cairo_path_fixed_iter_is_fill_box (cairo_path_fixed_iter_t *_iter,
points[2].x == points[3].x &&
points[3].y == points[0].y)
{
- box->p1 = points[0];
- box->p2 = points[2];
+ box->p1 = points[1];
+ box->p2 = points[3];
*_iter = iter;
return TRUE;
}