Manually implement #131

This commit is contained in:
Ray 2021-09-03 00:38:06 +02:00
parent c3dc43d4c5
commit 424ad14d3c

View File

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