Fixes #1427 - M badly displayed when SMLSIZE font used

This commit is contained in:
bsongis
2014-07-02 15:28:34 +02:00
parent c3aebfa239
commit 63fe996ebc
3 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -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];
+9
View File
@@ -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