Make smlsize font '.' a single dot and remove corresponding X9 code (#4626)

This commit is contained in:
3djc
2017-03-16 18:50:02 +01:00
committed by Bertrand Songis
parent 8a84c215a9
commit b18ae12e08
2 changed files with 4 additions and 5 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 726 B

After

Width:  |  Height:  |  Size: 755 B

+4 -5
View File
@@ -285,14 +285,13 @@ void lcdDrawSizedText(coord_t x, coord_t y, const char * s, uint8_t len, LcdFlag
break;
}
else if (c >= 0x20) {
if ( ( c == 46) && ((FONTSIZE(flags) == TINSIZE) || (FONTSIZE(flags) == SMLSIZE))) { // '.' handling
uint8_t c_height = (FONTSIZE(flags) == TINSIZE ? 5 : 6);
if ( ( c == 46) && ((FONTSIZE(flags) == TINSIZE))) { // '.' handling
if (flags & INVERS) {
lcdDrawSolidVerticalLine(x, y-1, c_height);
lcdDrawPoint(x, y + c_height);
lcdDrawSolidVerticalLine(x, y-1, 5);
lcdDrawPoint(x, y + 5);
}
else {
lcdDrawPoint(x, y + c_height -1 , flags);
lcdDrawPoint(x, y + 5 -1 , flags);
}
x+=2;
}