shithub: cstory

Download patch

ref: 4078182ee8750bb3c2038521635494a4c6e5bc4c
parent: 92d50ae187405170dcff6c3c9ef24b39e1be5bd2
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Sep 8 00:20:17 EDT 2020

Add a bugfix for the blinking text cursor

--- a/src/TextScr.cpp
+++ b/src/TextScr.cpp
@@ -1363,7 +1363,11 @@
 						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)));