v.0.0.6 source cleanup in drawText

This commit is contained in:
tiijay
2025-11-04 14:54:32 +01:00
parent 23b57b34b5
commit 2589cc3533
2 changed files with 6 additions and 8 deletions

View File

@@ -77,8 +77,7 @@ void LedMatrix::drawText(int x, int y, const char *text, CRGB color)
int cursorX = x;
for (int i = 0; text[i] != '\0'; i++)
{
drawChar(cursorX, y, text[i], color);
uint8_t chr_width = drawChar(cursorX, 8 + y, text[i], color);
uint8_t chr_width = drawChar(cursorX, y, text[i], color);
// cursorX += 6; // 5 pixels width + 1 pixel spacing
cursorX += (chr_width + 1); // 5 pixels width + 1 pixel spacing
}