]> O.S.I.I.S - jp/vkvg.git/commitdiff
elliptical arc step limit reduced
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Wed, 12 Jan 2022 21:19:36 +0000 (22:19 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Wed, 12 Jan 2022 21:19:36 +0000 (22:19 +0100)
src/vkvg_context_internal.c

index 1858232c9b248d852356409ea4231823a7b7ef2e..c5c6279af85ab4bc236b01152a9551215635ac6d 100644 (file)
@@ -1453,7 +1453,7 @@ void _elliptic_arc (VkvgContext ctx, float x1, float y1, float x2, float y2, boo
        double theta = sa;
        double ea = sa + delta_theta;
 
-       float step = fmaxf(0.0001f, fminf(M_PI, _get_arc_step(ctx, fminf (rx, ry))*0.1f));
+       float step = fmaxf(0.001f, fminf(M_PI, _get_arc_step(ctx, fminf (rx, ry))*0.1f));
 
        p = (vec2) {
                rx * cosf (theta),