summaryrefslogtreecommitdiffstatsci
path: root/src
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-01-05 18:55:10 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-01-05 18:55:10 +0100
commitedf82183be287306e6d92a45a522487aed0bf8a8 (patch)
tree8746d0702e271d6e210161a627aa8e861ea96ae1 /src
parent119d97311bdb4fa49587f60bb877a5a6b729fab3 (diff)
matrix_transform_point for get_arc_steps gives no glitch
Diffstat (limited to 'src')
-rw-r--r--src/vkvg_context_internal.c3
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}};