Fixes #1427 - M badly displayed when SMLSIZE font used
This commit is contained in:
+1
-1
@@ -204,7 +204,7 @@ void lcd_putcAtt(xcoord_t x, uint8_t y, const unsigned char c, LcdFlags flags)
|
||||
}
|
||||
else if (flags & SMLSIZE) {
|
||||
q = (c < 0xc0 ? &font_4x6[(c-0x20)*5] : &font_4x6_extra[(c-0xc0)*5]);
|
||||
lcdPutPattern(x, y, q, 4, 6, flags);
|
||||
lcdPutPattern(x, y, q, 5, 6, flags);
|
||||
}
|
||||
else if (flags & TINSIZE) {
|
||||
q = &font_3x5[((uint16_t)c-0x2d)*3];
|
||||
|
||||
@@ -1069,6 +1069,15 @@ TEST(Lcd, Line_Wrap)
|
||||
EXPECT_TRUE(checkScreenshot("line_wrap"));
|
||||
}
|
||||
|
||||
#if defined(CPUARM)
|
||||
TEST(Lcd, Smlsize_putsStrIdx)
|
||||
{
|
||||
lcd_clear();
|
||||
putsStrIdx(0, 0, "FM", 0, SMLSIZE);
|
||||
EXPECT_TRUE(checkScreenshot("smlsize_putsstridx"));
|
||||
}
|
||||
#endif
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
QCoreApplication app(argc, argv);
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 343 B |
Reference in New Issue
Block a user