[cairo-commit] src/cairo-pen.c

Chris Wilson ickle at kemper.freedesktop.org
Thu Nov 1 05:07:33 PDT 2012


 src/cairo-pen.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e9d45705844f67f4c8342d68fe35ad08ea008e30
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Thu Nov 1 11:42:46 2012 +0000

    pen: Tighten checking for bevel (start==stop) joins
    
    From commit d7f5a1bec421d6c7b92d16daae681fa31ac7c212
    Author: Chris Wilson <chris at 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 at chris-wilson.co.uk>

diff --git a/src/cairo-pen.c b/src/cairo-pen.c
index b4b643c..61be0e8 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;


More information about the cairo-commit mailing list