From: Jean-Philippe Bruyère Date: Wed, 9 Mar 2022 12:16:21 +0000 (+0100) Subject: increase arc limit for reduced point gen (r:15->30) X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=ffa813b6888075d4e20958c7c6cbf5fa347f0c5c;p=jp%2Fvkvg.git increase arc limit for reduced point gen (r:15->30) --- diff --git a/src/vkvg_context_internal.c b/src/vkvg_context_internal.c index 6adc4de..1b0e301 100644 --- a/src/vkvg_context_internal.c +++ b/src/vkvg_context_internal.c @@ -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)); }