From: Jean-Philippe Bruyère Date: Mon, 20 Dec 2021 08:38:04 +0000 (+0100) Subject: debug arc-neg X-Git-Tag: v0.2.0~5 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=2621081946b76e940b7af73ec7f91a8924287fa0;p=jp%2Fvkvg.git debug arc-neg --- diff --git a/src/vkvg_context.c b/src/vkvg_context.c index 9975fc6..5ce32a8 100644 --- a/src/vkvg_context.c +++ b/src/vkvg_context.c @@ -424,8 +424,11 @@ void vkvg_arc_negative (VkvgContext ctx, float xc, float yc, float radius, float a-=step; } - if (EQUF(a1-a2,M_PIF*2.f))//if arc is complete circle, last point is the same as the first one + if (EQUF(a1-a2,M_PIF*2.f)){//if arc is complete circle, last point is the same as the first one + _set_curve_end(ctx); + vkvg_close_path(ctx); return; + } a = a2; //vec2 lastP = v;