From 3c5b5121bc67ac6ee9de0d2b289a5067bf64a21a Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 31 May 2023 18:47:49 +0200 Subject: [PATCH] Update raygui.h --- src/raygui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raygui.h b/src/raygui.h index dac0514..092ea9e 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -2394,7 +2394,7 @@ int GuiTextBox(Rectangle bounds, char *text, int bufferSize, bool editMode) if (IsKeyPressed(KEY_LEFT) || (autoCursorDelayCounter%RAYGUI_TEXTBOX_AUTO_CURSOR_DELAY) == 0) // Delay every movement some frames { - unsigned int prevCodepointSize = 0; + int prevCodepointSize = 0; GetCodepointPrevious(text + textBoxCursorIndex, &prevCodepointSize); if (textBoxCursorIndex >= prevCodepointSize) textBoxCursorIndex -= prevCodepointSize;