fix chars
This commit is contained in:
@@ -214,12 +214,12 @@ void getCharPattern(PatternData * pattern, unsigned char c, LcdFlags flags)
|
||||
else {
|
||||
pattern->width = 5;
|
||||
pattern->height = 7;
|
||||
pattern->data = (c < 0x80) ? &font_5x7[(c - 0x20) * 5] : &font_5x7_extra[(c - 0x80) * 5];
|
||||
pattern->data = &font_5x7[(c - 0x20) * 5];
|
||||
}
|
||||
#else
|
||||
pattern->width = 5;
|
||||
pattern->height = 7;
|
||||
pattern->data = &font_5x7[(c-0x20) * 5];
|
||||
pattern->data = &font_5x7[(c - 0x20) * 5];
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -230,7 +230,7 @@ uint8_t getCharWidth(char c, LcdFlags flags)
|
||||
return getPatternWidth(&pattern);
|
||||
}
|
||||
|
||||
void lcdDrawChar(coord_t x, coord_t y, char c, LcdFlags flags)
|
||||
void lcdDrawChar(coord_t x, coord_t y, uint8_t c, LcdFlags flags)
|
||||
{
|
||||
lcdNextPos = x - 1;
|
||||
#if defined(BOOT)
|
||||
@@ -243,7 +243,7 @@ void lcdDrawChar(coord_t x, coord_t y, char c, LcdFlags flags)
|
||||
#endif
|
||||
}
|
||||
|
||||
void lcdDrawChar(coord_t x, coord_t y, char c)
|
||||
void lcdDrawChar(coord_t x, coord_t y, uint8_t c)
|
||||
{
|
||||
lcdDrawChar(x, y, c, 0);
|
||||
}
|
||||
|
||||
@@ -100,8 +100,8 @@ extern coord_t lcdNextPos;
|
||||
#define DISPLAY_END (displayBuf + DISPLAY_BUFFER_SIZE)
|
||||
#define ASSERT_IN_DISPLAY(p) assert((p) >= displayBuf && (p) < DISPLAY_END)
|
||||
|
||||
void lcdDrawChar(coord_t x, coord_t y, char c);
|
||||
void lcdDrawChar(coord_t x, coord_t y, char c, LcdFlags mode);
|
||||
void lcdDrawChar(coord_t x, coord_t y, uint8_t c);
|
||||
void lcdDrawChar(coord_t x, coord_t y, uint8_t c, LcdFlags mode);
|
||||
void lcdDrawCenteredText(coord_t y, const char * s, LcdFlags flags = 0);
|
||||
void lcdDrawText(coord_t x, coord_t y, const char * s, LcdFlags mode);
|
||||
void lcdDrawTextAtIndex(coord_t x, coord_t y, const char * s,uint8_t idx, LcdFlags mode);
|
||||
|
||||
Reference in New Issue
Block a user