Update raygui.h

This commit is contained in:
Ray
2023-04-17 17:52:24 +02:00
parent 6b88e106e0
commit b2ff512c8e

View File

@ -2341,7 +2341,7 @@ bool GuiTextBoxMulti(Rectangle bounds, char *text, int bufferSize, bool editMode
char *lastTextBreak = text;
// Update cursor.y position considering line breaks
cursor.y = textBounds.y + (textBounds.height/2 - cursor.height/2) - lineCount/2; // Move to centered text
cursor.y = textBounds.y + (textBounds.height/2 - cursor.height/2); // -lineCount/2; // Move to centered text
for (int i = 0; i < sharedCursorIndex; i++)
{
if (text[i] == '\n')