]> O.S.I.I.S - jp/vkvg.git/commitdiff
wip
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Thu, 3 Mar 2022 06:21:53 +0000 (07:21 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Thu, 3 Mar 2022 06:21:53 +0000 (07:21 +0100)
include/vkvg.h
tests/bezier_params_test.c

index 0668b55cf2dedddda8a4a715c968ea006e8fcce0..8878840244770d6ebd36c8fa817b01d1dbb02b5a 100644 (file)
@@ -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
index ea29b68e3b97aa1a5037020337655eb9adedb8f7..fea074f979fb868eee4727e75e1bf77dee862ff4 100644 (file)
@@ -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: