From ffa813b6888075d4e20958c7c6cbf5fa347f0c5c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Wed, 9 Mar 2022 13:16:21 +0100 Subject: [PATCH] increase arc limit for reduced point gen (r:15->30) --- src/vkvg_context_internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- 2.47.3