[cairo-commit] src/cairo-path-stroke-polygon.c

Chris Wilson ickle at kemper.freedesktop.org
Fri Nov 2 07:57:16 PDT 2012


 src/cairo-path-stroke-polygon.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1f4d05b55c96347aa4240190fda27f951b00c539
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Fri Nov 2 14:52:03 2012 +0000

    stroke: Fix calling '_cairo_spline_intersect' for in-bounds checking of splines
    
    Fixes stroke-clipped, within reason. There still remains some
    antialiasing noise (between rendering the circle piecewise and wholly)
    worth investigating - but that is probably an artefact of switching
    between analytical rendering modes in the scanline
    rasterisation.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/cairo-path-stroke-polygon.c b/src/cairo-path-stroke-polygon.c
index f6e81e0..2c8fe5e 100644
--- a/src/cairo-path-stroke-polygon.c
+++ b/src/cairo-path-stroke-polygon.c
@@ -1169,7 +1169,7 @@ curve_to (void *closure,
     cairo_stroke_face_t face;
 
     if (stroker->has_bounds &&
-	! _cairo_spline_intersects (&stroker->current_face.point, b, c, b,
+	! _cairo_spline_intersects (&stroker->current_face.point, b, c, d,
 				    &stroker->bounds))
 	return line_to (closure, d);
 


More information about the cairo-commit mailing list