removed unnecessary 'space' from bool[][] characters
This commit is contained in:
parent
705e8c7d77
commit
8e5a4e2501
@ -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);
|
||||||
|
|||||||
@ -1,13 +1,5 @@
|
|||||||
#include "DisplayMatrix_FontSpecial.h"
|
#include "DisplayMatrix_FontSpecial.h"
|
||||||
|
|
||||||
Symbol3 FONT_CHAR_SPACE = {
|
|
||||||
{_,_,_},
|
|
||||||
{_,_,_},
|
|
||||||
{_,_,_},
|
|
||||||
{_,_,_},
|
|
||||||
{_,_,_},
|
|
||||||
};
|
|
||||||
|
|
||||||
Symbol3 FONT_CHAR_MINUS = {
|
Symbol3 FONT_CHAR_MINUS = {
|
||||||
{_,_,_},
|
{_,_,_},
|
||||||
{_,_,_},
|
{_,_,_},
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user