Skip to content

Commit

Permalink
fix wrong character width (bigtreetech#1694)
Browse files Browse the repository at this point in the history
  • Loading branch information
guruathwal authored Mar 9, 2021
1 parent f25556c commit 783d71f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TFT/src/User/Menu/SendGcode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 783d71f

Please sign in to comment.