From e9d45705844f67f4c8342d68fe35ad08ea008e30 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 1 Nov 2012 11:42:46 +0000 Subject: [PATCH] pen: Tighten checking for bevel (start==stop) joins From commit d7f5a1bec421d6c7b92d16daae681fa31ac7c212 Author: Chris Wilson Date: Wed Oct 31 09:27:52 2012 +0000 pen: First check whether the in/out edges lie within the single pen vertex makes a couple of tests much happier. Signed-off-by: Chris Wilson --- src/cairo-pen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cairo-pen.c b/src/cairo-pen.c index b4b643c28..61be0e829 100644 --- a/src/cairo-pen.c +++ b/src/cairo-pen.c @@ -412,7 +412,7 @@ _cairo_pen_find_active_cw_vertices (const cairo_pen_t *pen, i = 0; *start = i; - if (_cairo_slope_compare (out, &pen->vertices[i].slope_ccw) > 0) { + if (_cairo_slope_compare (out, &pen->vertices[i].slope_ccw) >= 0) { lo = i; hi = i + pen->num_vertices; i = (lo + hi) >> 1; @@ -454,7 +454,7 @@ _cairo_pen_find_active_ccw_vertices (const cairo_pen_t *pen, i = 0; *start = i; - if (_cairo_slope_compare (&pen->vertices[i].slope_cw, out) < 0) { + if (_cairo_slope_compare (&pen->vertices[i].slope_cw, out) <= 0) { lo = i; hi = i + pen->num_vertices; i = (lo + hi) >> 1;