removed unnecessary 'space' from bool[][] characters

This commit is contained in:
Patrick Haßel 2025-01-25 21:15:17 +01:00
parent 705e8c7d77
commit 8e5a4e2501
3 changed files with 5 additions and 10 deletions

View File

@ -196,13 +196,17 @@ public:
return printERROR(x, y, color); return printERROR(x, y, color);
} }
if (character == ' ') {
*x += 3;
return;
}
if (character == '\n') { if (character == '\n') {
*y += 6; *y += 6;
return; return;
} }
switch (character) { switch (character) {
case ' ': return print(x, y, reinterpret_cast<bool *>(FONT_CHAR_SPACE), countof(FONT_CHAR_SPACE[0]), countof(FONT_CHAR_SPACE), color);
case '-': return print(x, y, reinterpret_cast<bool *>(FONT_CHAR_MINUS), countof(FONT_CHAR_MINUS[0]), countof(FONT_CHAR_MINUS), color); case '-': return print(x, y, reinterpret_cast<bool *>(FONT_CHAR_MINUS), countof(FONT_CHAR_MINUS[0]), countof(FONT_CHAR_MINUS), color);
case '+': return print(x, y, reinterpret_cast<bool *>(FONT_CHAR_PLUS), countof(FONT_CHAR_PLUS[0]), countof(FONT_CHAR_PLUS), color); case '+': return print(x, y, reinterpret_cast<bool *>(FONT_CHAR_PLUS), countof(FONT_CHAR_PLUS[0]), countof(FONT_CHAR_PLUS), color);
case '_': return print(x, y, reinterpret_cast<bool *>(FONT_CHAR_UNDERLINE), countof(FONT_CHAR_UNDERLINE[0]), countof(FONT_CHAR_UNDERLINE), color); case '_': return print(x, y, reinterpret_cast<bool *>(FONT_CHAR_UNDERLINE), countof(FONT_CHAR_UNDERLINE[0]), countof(FONT_CHAR_UNDERLINE), color);

View File

@ -1,13 +1,5 @@
#include "DisplayMatrix_FontSpecial.h" #include "DisplayMatrix_FontSpecial.h"
Symbol3 FONT_CHAR_SPACE = {
{_,_,_},
{_,_,_},
{_,_,_},
{_,_,_},
{_,_,_},
};
Symbol3 FONT_CHAR_MINUS = { Symbol3 FONT_CHAR_MINUS = {
{_,_,_}, {_,_,_},
{_,_,_}, {_,_,_},

View File

@ -3,7 +3,6 @@
#include "DisplayMatrix_FontCommon.h" #include "DisplayMatrix_FontCommon.h"
extern Symbol3 FONT_CHAR_SPACE;
extern Symbol3 FONT_CHAR_MINUS; extern Symbol3 FONT_CHAR_MINUS;
extern Symbol3 FONT_CHAR_PLUS; extern Symbol3 FONT_CHAR_PLUS;
extern Symbol3 FONT_CHAR_UNDERLINE; extern Symbol3 FONT_CHAR_UNDERLINE;