1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 00:05:17 +03:00

SMLSIZE last row missing

This commit is contained in:
bsongis 2014-07-15 23:03:38 +02:00
parent 763c7fbb7d
commit 5db98a3fef
2 changed files with 12 additions and 2 deletions

View file

@ -178,7 +178,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, 5, 6, flags);
lcdPutPattern(x, y, q, 5, 7, flags);
}
else if (flags & TINSIZE) {
q = &font_3x5[((uint16_t)c-0x2d)*3];

View file

@ -192,6 +192,17 @@ TEST(Lcd, vline)
EXPECT_TRUE(checkScreenshot("vline"));
}
#if defined(CPUARM)
TEST(Lcd, Smlsize)
{
lcd_clear();
lcd_putsAtt(0, 0, "TESTgy,", SMLSIZE);
lcd_putsAtt(10, 22, "TESTgy,", SMLSIZE|INVERS);
lcd_filled_rect(8, 40, 100, 20);
lcd_putsAtt(10, 42, "TESTgy,", SMLSIZE);
EXPECT_TRUE(checkScreenshot("smlsize"));
}
TEST(Lcd, Stdsize)
{
lcd_clear();
@ -202,7 +213,6 @@ TEST(Lcd, Stdsize)
EXPECT_TRUE(checkScreenshot("stdsize"));
}
#if defined(CPUARM)
TEST(Lcd, Midsize)
{
lcd_clear();