]> O.S.I.I.S - jp/vkvg.git/commitdiff
use private _line_to in arc
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Sun, 9 Jan 2022 10:45:49 +0000 (11:45 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Tue, 11 Jan 2022 15:41:25 +0000 (16:41 +0100)
src/vkvg_context.c

index adfd05e8ba2a0f6bc4f41786e8bc4c4ea9faa3c1..f645ab1e6438676830d18443d27fa9bd5603f89c 100644 (file)
@@ -395,7 +395,7 @@ void vkvg_arc (VkvgContext ctx, float xc, float yc, float radius, float a1, floa
                _set_curve_start (ctx);
                _add_point (ctx, v.x, v.y);
        }else{
-               vkvg_line_to(ctx, v.x, v.y);
+               _line_to(ctx, v.x, v.y);
                _set_curve_start (ctx);
        }
 
@@ -443,7 +443,7 @@ void vkvg_arc_negative (VkvgContext ctx, float xc, float yc, float radius, float
                _set_curve_start (ctx);
                _add_point (ctx, v.x, v.y);
        }else{
-               vkvg_line_to(ctx, v.x, v.y);
+               _line_to(ctx, v.x, v.y);
                _set_curve_start (ctx);
        }