app: clear pixels between characters

This commit is contained in:
King Kévin 2022-08-11 14:17:56 +02:00
parent 86fa08cb91
commit 3f18fef34c
1 changed files with 5 additions and 1 deletions

View File

@ -271,7 +271,11 @@ static void matrix_puts(bool ws, int16_t x, int16_t y, const char* str, enum fon
if (x + fonts[font].width >= 0) {
matrix_putc(ws, x, y, str[i], font, red, green, blue);
}
x += fonts[font].width + 1;
x += fonts[font].width;
for (uint8_t pix_y = y; pix_y < y + fonts[font].height; pix_y++) {
matrix_set(ws, x, pix_y, false, false, false);
}
x += 1;
}
}