From 8c2b15d6495a0be3acc24ca6860ce9287d4917e0 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Tue, 26 Dec 2023 16:55:39 +0100 Subject: [PATCH] port: on-screen messages include all rows of the message --- port/src/console.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/port/src/console.c b/port/src/console.c index 2a4c2a786..f631c557e 100644 --- a/port/src/console.c +++ b/port/src/console.c @@ -93,7 +93,11 @@ void conPrint(s32 showmsg, const char *str) } if (showmsg) { if (conMsgRows < CON_MSGROWS) { - ++conMsgRows; + if (conPrintRow > oldRow) { + conMsgRows += conPrintRow - oldRow; + } else { + conMsgRows += conPrintRow + (CON_ROWS - oldRow); + } } conMsgTimer = sysGetSeconds() + CON_MSGTIMER; }