mirror of
https://github.com/raysan5/raygui.git
synced 2026-02-06 22:29:18 -05:00
Manually implement #131
This commit is contained in:
@ -2205,10 +2205,10 @@ bool GuiTextBoxMulti(Rectangle bounds, char *text, int textSize, bool editMode)
|
|||||||
bool pressed = false;
|
bool pressed = false;
|
||||||
|
|
||||||
Rectangle textAreaBounds = {
|
Rectangle textAreaBounds = {
|
||||||
bounds.x + GuiGetStyle(TEXTBOX, TEXT_INNER_PADDING),
|
bounds.x + GuiGetStyle(TEXTBOX, BORDER_WIDTH) + GuiGetStyle(TEXTBOX, TEXT_INNER_PADDING),
|
||||||
bounds.y + GuiGetStyle(TEXTBOX, TEXT_INNER_PADDING),
|
bounds.y + GuiGetStyle(TEXTBOX, BORDER_WIDTH) + GuiGetStyle(TEXTBOX, TEXT_INNER_PADDING),
|
||||||
bounds.width - 2*GuiGetStyle(TEXTBOX, TEXT_INNER_PADDING),
|
bounds.width - 2*(GuiGetStyle(TEXTBOX, BORDER_WIDTH) + GuiGetStyle(TEXTBOX, TEXT_INNER_PADDING)),
|
||||||
bounds.height - 2*GuiGetStyle(TEXTBOX, TEXT_INNER_PADDING)
|
bounds.height - 2*(GuiGetStyle(TEXTBOX, BORDER_WIDTH) + GuiGetStyle(TEXTBOX, TEXT_INNER_PADDING))
|
||||||
};
|
};
|
||||||
|
|
||||||
// Cursor position, [x, y] values should be updated
|
// Cursor position, [x, y] values should be updated
|
||||||
|
|||||||
Reference in New Issue
Block a user