From 3f18fef34cb1a305db82875859fcd462be206ada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Thu, 11 Aug 2022 14:17:56 +0200 Subject: [PATCH] app: clear pixels between characters --- application.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application.c b/application.c index a43b99d..b77a3bb 100644 --- a/application.c +++ b/application.c @@ -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; } }