Fixes
This commit is contained in:
@@ -400,7 +400,7 @@ void lcdDrawText(coord_t x, coord_t y, const char * s, LcdFlags flags)
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user