[AVR] Fix last column of last row of DBLSIZE text (off-by-one error)

This commit is contained in:
Michał Wróbel
2015-06-07 19:34:53 +02:00
parent 3b6322181c
commit bbf88744cb
4 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -1181,7 +1181,7 @@ void lcd_putcAtt(coord_t x, uint8_t y, const unsigned char c, LcdFlags flags)
b1 = ~b1;
b2 = ~b2;
}
if(&p[LCD_W+1] < DISPLAY_END) {
if(p+LCD_W < DISPLAY_END) {
ASSERT_IN_DISPLAY(p);
ASSERT_IN_DISPLAY(p+LCD_W);
LCD_BYTE_FILTER(p, 0, b1);