Update raygui.h

This commit is contained in:
Ray 2022-10-08 11:37:44 +02:00
parent 353b8a4b5b
commit 5f22083d6c

View File

@ -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;