Make smlsize font '.' a single dot and remove corresponding X9 code (#4626)
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 726 B After Width: | Height: | Size: 755 B |
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user