mirror of
https://github.com/raysan5/raygui.git
synced 2026-02-04 13:19:17 -05:00
Update raygui.h
This commit is contained in:
@ -2653,7 +2653,7 @@ int GuiTextBox(Rectangle bounds, char *text, int bufferSize, bool editMode)
|
|||||||
if (GetMousePosition().x >= (textBounds.x + textEndWidth - glyphWidth/2))
|
if (GetMousePosition().x >= (textBounds.x + textEndWidth - glyphWidth/2))
|
||||||
{
|
{
|
||||||
mouseCursor.x = textBounds.x + textEndWidth;
|
mouseCursor.x = textBounds.x + textEndWidth;
|
||||||
mouseCursorIndex = strlen(text);
|
mouseCursorIndex = (int)strlen(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Place cursor at required index on mouse click
|
// Place cursor at required index on mouse click
|
||||||
|
|||||||
Reference in New Issue
Block a user