]> O.S.I.I.S - jp/vkvg.git/commitdiff
increase arc limit for reduced point gen (r:15->30)
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Wed, 9 Mar 2022 12:16:21 +0000 (13:16 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Wed, 9 Mar 2022 12:16:21 +0000 (13:16 +0100)
src/vkvg_context_internal.c

index 6adc4dec1b100484ebadce0c59ded2f847867e39..1b0e301bb567bcd30dff7493797f85da6f175e7b 100644 (file)
@@ -249,7 +249,7 @@ float _get_arc_step (VkvgContext ctx, float radius) {
        float sx, sy;
        vkvg_matrix_get_scale (&ctx->pushConsts.mat, &sx, &sy);
        float r = radius * fabsf(fmaxf(sx,sy));
-       if (r < 15.0f)
+       if (r < 30.0f)
                return fminf(M_PI / 3.f, M_PI / r);
        return fminf(M_PI / 3.f,M_PI / (r * 0.4f));
 }