mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-06 01:30:19 +01:00
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:
parent
90860241bb
commit
e9d4570584
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue