diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-07-27 17:00:48 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-07-27 17:32:41 +0100 |
commit | 030de5144d6c84b2b690e178ecc03a9bddb52181 (patch) | |
tree | deba4233e5b87b3f7011a6e5271535aa7f61dc7a /src/cairo-polygon.c | |
parent | fc98fd9db5a619013ffcd671aacb5b8494443c8d (diff) | |
download | cairo-030de5144d6c84b2b690e178ecc03a9bddb52181.tar.gz |
polygon: Don't skip clipped horizontal edges
As Andrea Canciani pointed out even if it is horizontal within the clip
box, it may still have vertical extents outside of the clip box for
which we need to project onto the clip boundary in order to maintain
the correct polygon winding.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-polygon.c')
-rw-r--r-- | src/cairo-polygon.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/cairo-polygon.c b/src/cairo-polygon.c index cc9faae93..5f2cc31e2 100644 --- a/src/cairo-polygon.c +++ b/src/cairo-polygon.c @@ -355,9 +355,6 @@ _add_clipped_edge (cairo_polygon_t *polygon, right_y = _cairo_edge_compute_intersection_y_for_x (p1, p2, limits->p2.x); - if (left_y == right_y) /* horizontal within bounds */ - continue; - p1_y = top; p2_y = bottom; |