aboutsummaryrefslogtreecommitdiffstats
path: root/glcd
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-07-23 14:53:53 -0700
committerTectu <joel@unormal.org>2012-07-23 14:53:53 -0700
commit4323c7315ccdc8734e23c108f9e87621da35ad3b (patch)
treeddc788abe562deca0e33b84e06f19846ccb560d9 /glcd
parent062142204fac412cb0493404552220e500ad2d8b (diff)
parentc30550779b1120e1de2c884447e393127019d9e7 (diff)
downloaduGFX-4323c7315ccdc8734e23c108f9e87621da35ad3b.tar.gz
uGFX-4323c7315ccdc8734e23c108f9e87621da35ad3b.tar.bz2
uGFX-4323c7315ccdc8734e23c108f9e87621da35ad3b.zip
Merge pull request #17 from trsaunders/master
console optimisations
Diffstat (limited to 'glcd')
-rw-r--r--glcd/console.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/glcd/console.c b/glcd/console.c
index 724fae0e..0aac398b 100644
--- a/glcd/console.c
+++ b/glcd/console.c
@@ -101,7 +101,7 @@ msg_t lcdConsoleInit(GLCDConsole *console, uint16_t x0, uint16_t y0, uint16_t wi
console->font = font;
- lcdDrawRect(x0, y0, width, height,1, console->bkcolor);
+ lcdFillArea(x0, y0, width, height, console->bkcolor);
}
msg_t lcdConsolePut(GLCDConsole *console, char c) {
@@ -110,8 +110,8 @@ msg_t lcdConsolePut(GLCDConsole *console, char c) {
if(c == '\n') {
/* clear the text at the end of the line */
if(console->cx < console->sx)
- lcdDrawRect(console->cx, console->cy, console->sx, console->cy + console->fy,
- 1, console->bkcolor);
+ lcdFillArea(console->cx, console->cy, console->sx, console->cy + console->fy,
+ console->bkcolor);
console->cx = 0;
console->cy += console->fy;
} else if(c == '\r') {
@@ -121,8 +121,8 @@ msg_t lcdConsolePut(GLCDConsole *console, char c) {
width = lcdMeasureChar(c, console->font);
if((console->cx + width) >= console->sx) {
/* clear the text at the end of the line */
- lcdDrawRect(console->cx, console->cy, console->cx + width, console->cy + console->fy,
- 1, console->bkcolor);
+ lcdFillArea(console->cx, console->cy, console->cx + width, console->cy + console->fy,
+ console->bkcolor);
console->cx = 0;
console->cy += console->fy;
}