This commit is contained in:
Bertrand Songis
2019-03-31 15:17:11 +02:00
parent 98c3dd9acc
commit eb2b82bf92
8 changed files with 16 additions and 21 deletions
+1 -1
View File
@@ -349,7 +349,7 @@ void lcdDrawSizedText(coord_t x, coord_t y, const char * s, uint8_t len)
void lcdDrawCenteredText(coord_t y, const char * s, LcdFlags flags)
{
coord_t x = (LCD_W - FW * strlen(s)) / 2;
coord_t x = (LCD_W - getTextWidth(s, flags)) / 2;
lcdDrawText(x, y, s, flags);
}