From 4078182ee8750bb3c2038521635494a4c6e5bc4c Mon Sep 17 00:00:00 2001 From: Clownacy Date: Tue, 8 Sep 2020 04:20:17 +0100 Subject: [PATCH] Add a bugfix for the blinking text cursor --- src/TextScr.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/TextScr.cpp b/src/TextScr.cpp index 7e5dad44..db8eb8c5 100644 --- a/src/TextScr.cpp +++ b/src/TextScr.cpp @@ -1363,7 +1363,11 @@ int TextScriptProc(void) memcpy(str, &gTS.data[gTS.p_read], y); str[y] = '\0'; - gTS.p_write = x; + #ifdef FIX_BUGS + gTS.p_write = y; + #else + gTS.p_write = x; // This is way out of bounds, causing the blinking cursor to render offscreen + #endif // Print text PutText2(0, 0, str, RGB(0xFF, 0xFF, 0xFE), (SurfaceID)(SURFACE_ID_TEXT_LINE1 + (gTS.line % 4)));