diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2022-01-05 18:55:10 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2022-01-05 18:55:10 +0100 |
| commit | edf82183be287306e6d92a45a522487aed0bf8a8 (patch) | |
| tree | 8746d0702e271d6e210161a627aa8e861ea96ae1 /src | |
| parent | 119d97311bdb4fa49587f60bb877a5a6b729fab3 (diff) | |
matrix_transform_point for get_arc_steps gives no glitch
Diffstat (limited to 'src')
| -rw-r--r-- | src/vkvg_context_internal.c | 3 |
1 files changed, 2 insertions, 1 deletions
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}}; |