From cfccffdee91f091f12386db6074ffac1f0380943 Mon Sep 17 00:00:00 2001 From: Gurmeet Athwal Date: Tue, 9 Mar 2021 17:43:21 +0530 Subject: [PATCH] fix wrong character width (#1694) --- TFT/src/User/Menu/SendGcode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TFT/src/User/Menu/SendGcode.c b/TFT/src/User/Menu/SendGcode.c index 01fadcc6f6..4c492fe78f 100644 --- a/TFT/src/User/Menu/SendGcode.c +++ b/TFT/src/User/Menu/SendGcode.c @@ -748,10 +748,10 @@ void menuTerminalWindow(void) terminalDrawPageNumber(); } - getCharacterInfo((uint8_t *)(terminalBuf + lastTerminalIndex), &info); - while (terminalBuf + lastTerminalIndex && (lastTerminalIndex != terminalData->terminalBufTail)) { + getCharacterInfo((uint8_t *)(terminalBuf + lastTerminalIndex), &info); + // Next Line if (cursorX + info.pixelWidth > terminalAreaRect[0].x1 || (terminalBuf[lastTerminalIndex] == '\n' && cursorX != CURSOR_START_X))