From 2621081946b76e940b7af73ec7f91a8924287fa0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Mon, 20 Dec 2021 09:38:04 +0100 Subject: [PATCH] debug arc-neg --- src/vkvg_context.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.47.3