[AVR] Fix last column of last row of DBLSIZE text (off-by-one error)
This commit is contained in:
@@ -1181,7 +1181,7 @@ void lcd_putcAtt(coord_t x, uint8_t y, const unsigned char c, LcdFlags flags)
|
|||||||
b1 = ~b1;
|
b1 = ~b1;
|
||||||
b2 = ~b2;
|
b2 = ~b2;
|
||||||
}
|
}
|
||||||
if(&p[LCD_W+1] < DISPLAY_END) {
|
if(p+LCD_W < DISPLAY_END) {
|
||||||
ASSERT_IN_DISPLAY(p);
|
ASSERT_IN_DISPLAY(p);
|
||||||
ASSERT_IN_DISPLAY(p+LCD_W);
|
ASSERT_IN_DISPLAY(p+LCD_W);
|
||||||
LCD_BYTE_FILTER(p, 0, b1);
|
LCD_BYTE_FILTER(p, 0, b1);
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 311 B |
Binary file not shown.
|
After Width: | Height: | Size: 335 B |
@@ -174,6 +174,13 @@ TEST(Lcd, Line_Wrap)
|
|||||||
EXPECT_TRUE(checkScreenshot("line_wrap"));
|
EXPECT_TRUE(checkScreenshot("line_wrap"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST(Lcd, DblsizeBottomRight)
|
||||||
|
{
|
||||||
|
lcd_clear();
|
||||||
|
lcd_putsAtt(LCD_W-20, LCD_H-16, "TEST", DBLSIZE);
|
||||||
|
EXPECT_TRUE(checkScreenshot("dblsize_bottom_right"));
|
||||||
|
}
|
||||||
|
|
||||||
#if defined(CPUARM)
|
#if defined(CPUARM)
|
||||||
TEST(Lcd, Smlsize_putsStrIdx)
|
TEST(Lcd, Smlsize_putsStrIdx)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user