From bb9a717caeac10d28a96d501a31265fff208ceaf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Thu, 3 Mar 2022 07:21:53 +0100 Subject: [PATCH] wip --- include/vkvg.h | 1 + tests/bezier_params_test.c | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/vkvg.h b/include/vkvg.h index 0668b55..8878840 100644 --- a/include/vkvg.h +++ b/include/vkvg.h @@ -1648,6 +1648,7 @@ uint32_t vkvg_text_run_get_glyph_count (VkvgText textRun); vkvg_public void vkvg_text_run_get_glyph_position (VkvgText textRun, uint32_t index, + vkvg_glyph_info_t* pGlyphInfo); #if VKVG_DEBUG_CURVE_PARAMS vkvg_public diff --git a/tests/bezier_params_test.c b/tests/bezier_params_test.c index ea29b68..fea074f 100644 --- a/tests/bezier_params_test.c +++ b/tests/bezier_params_test.c @@ -207,12 +207,11 @@ static void key_callback(GLFWwindow* window, int key, int scancode, int action, lineCap = 0; break; case GLFW_KEY_KP_ADD : - if (ptsCount < initPtsCount) - ptsCount++; + lineWidth++; break; case GLFW_KEY_KP_SUBTRACT : - if (ptsCount > 1) - ptsCount--; + if (lineWidth > 1) + lineWidth--; break; #ifdef VKVG_WIRED_DEBUG case GLFW_KEY_F1: -- 2.47.3