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

Smlsize font correction

This commit is contained in:
mhotar 2013-12-12 16:04:29 +01:00
parent a6863e3d1c
commit d263552c27

View file

@ -179,7 +179,7 @@ void lcd_putcAtt(xcoord_t x, uint8_t y, const unsigned char c, LcdFlags flags)
continue;
}
}
else if (i<=8) {
if (i <= 8) {
b1 = pgm_read_byte(q++); /*top byte*/
b2 = pgm_read_byte(q++);
}
@ -219,7 +219,7 @@ void lcd_putcAtt(xcoord_t x, uint8_t y, const unsigned char c, LcdFlags flags)
continue;
}
}
else if (i <= 5) pgm_read_byte(q++);
else if (i <= 5) b = pgm_read_byte(q++);
if (b == 0x7f) continue;
if (inv) b = ~b & 0x7f;
if (p<DISPLAY_END) {
@ -246,7 +246,7 @@ void lcd_putcAtt(xcoord_t x, uint8_t y, const unsigned char c, LcdFlags flags)
continue;
}
}
else if (i <= 3) pgm_read_byte(q++);
else if (i <= 3) b= pgm_read_byte(q++);
if (inv) b = ~b & 0x3f;
if (p<DISPLAY_END) {
LCD_BYTE_FILTER(p, ~(0x3f << ym8), b << ym8);