From 20cdb99ae8ae0cc02193468e811b1b74b3f6d3b7 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 27 Aug 2009 16:21:30 +0100 Subject: [PATCH] [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. --- src/cairo-path-fixed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cairo-path-fixed.c b/src/cairo-path-fixed.c index 7b2093fc0..a1a8184d0 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; }