From b2ff512c8e9ec8e556bb38b5a6891e6d554698d1 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 17 Apr 2023 17:52:24 +0200 Subject: [PATCH] Update raygui.h --- src/raygui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raygui.h b/src/raygui.h index 3b8e389..95e90a4 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -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')