1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-04 23:29:42 +02:00

eeshow/cro.c (cr_arc): close the path for filled arcs

Else, we'd get little "horns" at the ends.
This commit is contained in:
Werner Almesberger 2016-08-16 02:33:37 -03:00
parent ae80cde66c
commit ccf77a541d

View File

@ -181,6 +181,8 @@ static void cr_arc(void *ctx, int x, int y, int r, int sa, int ea,
cairo_new_path(cc->cr);
cairo_arc(cc->cr, cx(cc, x), cy(cc, y), cd(cc, r),
-ea / 180.0 * M_PI, -sa / 180.0 * M_PI);
if (fill_color != COLOR_NONE)
cairo_close_path(cc->cr);
paint(cc, color, fill_color);
}