From 5f22083d6cf9361bcfb57df9f6dd7978f6743c20 Mon Sep 17 00:00:00 2001 From: Ray Date: Sat, 8 Oct 2022 11:37:44 +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 eab3e4b..6535329 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -2090,7 +2090,7 @@ bool GuiTextBox(Rectangle bounds, char *text, int textSize, bool editMode) while ((textWidth >= textBounds.width) && (text[0] != '\0')) { int codepointSize = 0; - GetCodepoint(text, &codepointSize); + GetCodepointNext(text, &codepointSize); text += codepointSize; textWidth = GetTextWidth(text); cursor.x = textBounds.x + textWidth + 2;