Skip to content

Commit 2d4b053

Browse files
authoredNov 17, 2022
Fixed TVout::write to allow printing the last column
TVout::write did not allow the last column to be printed with certain screen resolution
1 parent 8e22a6f commit 2d4b053

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎TVoutPrint.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void TVout::write(uint8_t c) {
7878
//clear_screen();
7979
break;
8080
default:
81-
if (cursor_x >= (display.hres*8 - pgm_read_byte(font))) {
81+
if (cursor_x > (display.hres*8 - pgm_read_byte(font))) {
8282
cursor_x = 0;
8383
inc_txtline();
8484
print_char(cursor_x,cursor_y,c);
@@ -377,4 +377,4 @@ void TVout::printFloat(double number, uint8_t digits)
377377
print(toPrint);
378378
remainder -= toPrint;
379379
}
380-
}
380+
}

0 commit comments

Comments
 (0)
Please sign in to comment.