From 06a737b74d3bc925a2c32254f497e07b6d1af5ca Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 24 Sep 2014 09:57:31 +0100 Subject: arc: Insert the initial point on the arc Currently the very first point on the arc will be the first interpreted location along the spline used to approximate the arc. This will be close, but not quite the exact point the user intended the arc to run from, so begin the arc with a line-to the initial point. Signed-off-by: Chris Wilson --- src/cairo-arc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cairo-arc.c b/src/cairo-arc.c index 5cbd11238..390397bae 100644 --- a/src/cairo-arc.c +++ b/src/cairo-arc.c @@ -236,6 +236,10 @@ _cairo_arc_in_direction (cairo_t *cr, step = -step; } + cairo_line_to (cr, + xc + radius * cos (angle_min), + yc + radius * sin (angle_min)); + for (i = 0; i < segments; i++, angle_min += step) { _cairo_arc_segment (cr, xc, yc, radius, angle_min, angle_min + step); -- cgit v1.2.1