Fixed the GTK+ drawing code to draw arc initial line segments in the correct place.

This commit is contained in:
Pietro Gagliardi 2015-10-10 08:44:12 -04:00
parent 7a4d4b7eba
commit 7fbabfd8ec
1 changed files with 4 additions and 3 deletions

View File

@ -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]);