From 7fbabfd8ec8c4213139665abb2a50e8c6166a092 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 10 Oct 2015 08:44:12 -0400 Subject: [PATCH] Fixed the GTK+ drawing code to draw arc initial line segments in the correct place. --- unix/draw.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/unix/draw.c b/unix/draw.c index 91db4180..25b79356 100644 --- a/unix/draw.c +++ b/unix/draw.c @@ -154,12 +154,13 @@ static void runPath(uiDrawPath *p, cairo_t *cr) case arcTo: // cairo_arc() and cairo_arc_negative() only go clockwise // TODO explain why this works - cairo_arc(cr, + // don't use cairo_arc(); that requires us to put the starting point as the ending point + cairo_arc_negative(cr, piece->d[0], piece->d[1], piece->d[2], - -(piece->d[3] + piece->d[4]), - -(piece->d[3])); + -(piece->d[3]), + -(piece->d[3] + piece->d[4])); break; case lineTo: cairo_line_to(cr, piece->d[0], piece->d[1]);