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;
|
break;
|
||||||
}
|
}
|
||||||
else if (c >= 0x20) {
|
else if (c >= 0x20) {
|
||||||
if ( ( c == 46) && ((FONTSIZE(flags) == TINSIZE) || (FONTSIZE(flags) == SMLSIZE))) { // '.' handling
|
if ( ( c == 46) && ((FONTSIZE(flags) == TINSIZE))) { // '.' handling
|
||||||
uint8_t c_height = (FONTSIZE(flags) == TINSIZE ? 5 : 6);
|
|
||||||
if (flags & INVERS) {
|
if (flags & INVERS) {
|
||||||
lcdDrawSolidVerticalLine(x, y-1, c_height);
|
lcdDrawSolidVerticalLine(x, y-1, 5);
|
||||||
lcdDrawPoint(x, y + c_height);
|
lcdDrawPoint(x, y + 5);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
lcdDrawPoint(x, y + c_height -1 , flags);
|
lcdDrawPoint(x, y + 5 -1 , flags);
|
||||||
}
|
}
|
||||||
x+=2;
|
x+=2;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user