summaryrefslogtreecommitdiff
path: root/src/cairo-pen.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-11-01 11:42:46 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-11-01 11:42:46 +0000
commite9d45705844f67f4c8342d68fe35ad08ea008e30 (patch)
tree8a1635cc97e50f80c18e658efab1c99b3d837e81 /src/cairo-pen.c
parent90860241bb8f8eff3c1ab40641b1bfca0798b238 (diff)
downloadcairo-e9d45705844f67f4c8342d68fe35ad08ea008e30.tar.gz
pen: Tighten checking for bevel (start==stop) joins
From commit d7f5a1bec421d6c7b92d16daae681fa31ac7c212 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>
Diffstat (limited to 'src/cairo-pen.c')
-rw-r--r--src/cairo-pen.c4
1 files 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;