Update raygui.h

This commit is contained in:
Ray
2023-11-08 19:35:05 +01:00
parent 95c0065bd8
commit a2726c8600

View File

@ -2653,7 +2653,7 @@ int GuiTextBox(Rectangle bounds, char *text, int bufferSize, bool editMode)
if (GetMousePosition().x >= (textBounds.x + textEndWidth - glyphWidth/2))
{
mouseCursor.x = textBounds.x + textEndWidth;
mouseCursorIndex = strlen(text);
mouseCursorIndex = (int)strlen(text);
}
// Place cursor at required index on mouse click