lcdEnableTransparentText() -> lcdSetFontTransparency()

This commit is contained in:
Tectu 2012-06-13 22:34:17 +02:00
parent b0b85efa18
commit f5b9da87c9
2 changed files with 5 additions and 2 deletions

4
glcd.c
View File

@ -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
View File

@ -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);