mirror of
https://github.com/raysan5/raygui.git
synced 2026-02-01 19:59:17 -05:00
REVIEWED: GuiTextBox() cursor height
This commit is contained in:
@ -1998,7 +1998,7 @@ bool GuiTextBox(Rectangle bounds, char *text, int textSize, bool editMode)
|
|||||||
(float)GuiGetStyle(DEFAULT, TEXT_SIZE)*2
|
(float)GuiGetStyle(DEFAULT, TEXT_SIZE)*2
|
||||||
};
|
};
|
||||||
|
|
||||||
if (cursor.height > bounds.height) cursor.height = bounds.height - GuiGetStyle(TEXTBOX, BORDER_WIDTH)*2;
|
if (cursor.height >= bounds.height) cursor.height = bounds.height - GuiGetStyle(TEXTBOX, BORDER_WIDTH)*2;
|
||||||
if (cursor.y < (bounds.y + GuiGetStyle(TEXTBOX, BORDER_WIDTH))) cursor.y = bounds.y + GuiGetStyle(TEXTBOX, BORDER_WIDTH);
|
if (cursor.y < (bounds.y + GuiGetStyle(TEXTBOX, BORDER_WIDTH))) cursor.y = bounds.y + GuiGetStyle(TEXTBOX, BORDER_WIDTH);
|
||||||
|
|
||||||
// Update control
|
// Update control
|
||||||
|
|||||||
Reference in New Issue
Block a user