aboutsummaryrefslogtreecommitdiffstats
path: root/glcd.c
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-06-14 12:16:34 +0200
committerTectu <joel@unormal.org>2012-06-14 12:16:34 +0200
commit76fafb7dbbd8d1c45682fa3a84dcd2232ebb615c (patch)
tree4c9d5a6261be1ab4139644de9d0c73c11f74e1fe /glcd.c
parenta5ae06796053bbb6cee77a2bbaeea5de4daad4ef (diff)
downloaduGFX-76fafb7dbbd8d1c45682fa3a84dcd2232ebb615c.tar.gz
uGFX-76fafb7dbbd8d1c45682fa3a84dcd2232ebb615c.tar.bz2
uGFX-76fafb7dbbd8d1c45682fa3a84dcd2232ebb615c.zip
cleanups
Diffstat (limited to 'glcd.c')
-rw-r--r--glcd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/glcd.c b/glcd.c
index f50c696d..b7b27c34 100644
--- a/glcd.c
+++ b/glcd.c
@@ -7,7 +7,7 @@ uint16_t lcd_width, lcd_height;
uint16_t bgcolor=White, fgcolor=Black;
uint16_t cx, cy;
static uint8_t tpText=0;
-uint8_t* font;
+const uint8_t* font;
void lcdInit(void) {
lld_lcdInit();
@@ -117,8 +117,8 @@ void lcdDrawLine(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t co
}
}
-void lcdSetFont(uint8_t *fnt) {
- font = fnt;
+void lcdSetFont(const uint8_t *newFont) {
+ font = newFont;
}
void lcdSetFontTransparency(uint8_t transparency) {