From: Jean-Philippe Bruyère Date: Wed, 5 Jan 2022 17:55:10 +0000 (+0100) Subject: matrix_transform_point for get_arc_steps gives no glitch X-Git-Tag: v0.3.0-beta~46 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=edf82183be287306e6d92a45a522487aed0bf8a8;p=jp%2Fvkvg.git matrix_transform_point for get_arc_steps gives no glitch --- 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}};