pen: Tighten checking for bevel (start==stop) joins

From commit d7f5a1bec4
Author: Chris Wilson <chris@chris-wilson.co.uk>
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 <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-11-01 11:42:46 +00:00
parent 90860241bb
commit e9d4570584

View file

@ -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;