]> O.S.I.I.S - jp/vkvg.git/commitdiff
debug arc-neg
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Mon, 20 Dec 2021 08:38:04 +0000 (09:38 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Mon, 20 Dec 2021 08:38:04 +0000 (09:38 +0100)
src/vkvg_context.c

index 9975fc6f33e5032e4ac40d129bb2d3be43f423fb..5ce32a853807c7398d410318a46d47942b032346 100644 (file)
@@ -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;