From edf82183be287306e6d92a45a522487aed0bf8a8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Wed, 5 Jan 2022 18:55:10 +0100 Subject: [PATCH] matrix_transform_point for get_arc_steps gives no glitch --- src/vkvg_context_internal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vkvg_context_internal.c b/src/vkvg_context_internal.c index 5d0d649..23e90b1 100644 --- a/src/vkvg_context_internal.c +++ b/src/vkvg_context_internal.c @@ -209,7 +209,7 @@ float _normalizeAngle(float a) } float _get_arc_step (VkvgContext ctx, float radius) { float dx = radius, dy = radius; - vkvg_matrix_transform_distance (&ctx->pushConsts.mat, &dx, &dy); + vkvg_matrix_transform_point (&ctx->pushConsts.mat, &dx, &dy); float r = fabsf(fmaxf(dx,dy)); if (r < 3.0f) return asinf (1.0f / r) * 0.25f; @@ -1361,6 +1361,7 @@ void _poly_fill (VkvgContext ctx){ } ctx->curVertOffset = ctx->vertCount; } + //create fill from current path with ear clipping technic void _fill_ec (VkvgContext ctx){ Vertex v = {{0},ctx->curColor, {0,0,-1}}; -- 2.47.3