lcdEnableTransparentText() -> lcdSetFontTransparency()
This commit is contained in:
parent
b0b85efa18
commit
f5b9da87c9
4
glcd.c
4
glcd.c
@ -14,6 +14,8 @@ void lcdInit(void) {
|
||||
lcd_width = SCREEN_WIDTH;
|
||||
lcd_height = SCREEN_HEIGHT;
|
||||
|
||||
lcdSetOrientation(portrait);
|
||||
lcdSetFontTransparency(transparent);
|
||||
lcdSetFont(font_MediumBold);
|
||||
}
|
||||
|
||||
@ -119,7 +121,7 @@ void lcdSetFont(uint8_t *fnt) {
|
||||
font = fnt;
|
||||
}
|
||||
|
||||
void lcdEnableTransparentText(uint8_t transparency) {
|
||||
void lcdSetFontTransparency(uint8_t transparency) {
|
||||
tpText = transparency;
|
||||
}
|
||||
|
||||
|
3
glcd.h
3
glcd.h
@ -30,6 +30,7 @@
|
||||
|
||||
enum orientation {portrait, landscape, portraitInv, landscapeInv};
|
||||
enum filled {frame, filled};
|
||||
enum transparency {solid, transparent};
|
||||
|
||||
// For text rendering only
|
||||
extern uint16_t bgcolor, fgcolor;
|
||||
@ -53,7 +54,7 @@ void lcdDrawRect(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint8_t fil
|
||||
void lcdDrawRectString(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, const char* str, uint16_t fontColor, uint16_t bkColor);
|
||||
void lcdDrawCircle(uint16_t x, uint16_t y, uint16_t radius, uint8_t filled, uint16_t color);
|
||||
|
||||
void lcdEnableTransparentText(uint8_t transparency);
|
||||
void lcdSetFontTransparency(uint8_t transparency);
|
||||
void lcdSetFont(uint8_t *fnt);
|
||||
void lcdDrawChar(char c);
|
||||
void lcdPutString(const char *str);
|
||||
|
Loading…
Reference in New Issue
Block a user