Smlsize font correction

This commit is contained in:
mhotar
2013-12-12 16:04:29 +01:00
parent a6863e3d1c
commit d263552c27
+3 -3
View File
@@ -179,7 +179,7 @@ void lcd_putcAtt(xcoord_t x, uint8_t y, const unsigned char c, LcdFlags flags)
continue; continue;
} }
} }
else if (i<=8) { if (i <= 8) {
b1 = pgm_read_byte(q++); /*top byte*/ b1 = pgm_read_byte(q++); /*top byte*/
b2 = pgm_read_byte(q++); 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; continue;
} }
} }
else if (i <= 5) pgm_read_byte(q++); else if (i <= 5) b = pgm_read_byte(q++);
if (b == 0x7f) continue; if (b == 0x7f) continue;
if (inv) b = ~b & 0x7f; if (inv) b = ~b & 0x7f;
if (p<DISPLAY_END) { if (p<DISPLAY_END) {
@@ -246,7 +246,7 @@ void lcd_putcAtt(xcoord_t x, uint8_t y, const unsigned char c, LcdFlags flags)
continue; continue;
} }
} }
else if (i <= 3) pgm_read_byte(q++); else if (i <= 3) b= pgm_read_byte(q++);
if (inv) b = ~b & 0x3f; if (inv) b = ~b & 0x3f;
if (p<DISPLAY_END) { if (p<DISPLAY_END) {
LCD_BYTE_FILTER(p, ~(0x3f << ym8), b << ym8); LCD_BYTE_FILTER(p, ~(0x3f << ym8), b << ym8);