aboutsummaryrefslogtreecommitdiffstats
path: root/glcd
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-07-24 03:11:38 +0200
committerTectu <joel@unormal.org>2012-07-24 03:11:38 +0200
commit5f268adaaa2687e8e33f55890565d14c0ae83dfc (patch)
tree7b1b3618c1bcb3c4a6df39003b1069f9c1a3f038 /glcd
parent4323c7315ccdc8734e23c108f9e87621da35ad3b (diff)
downloaduGFX-5f268adaaa2687e8e33f55890565d14c0ae83dfc.tar.gz
uGFX-5f268adaaa2687e8e33f55890565d14c0ae83dfc.tar.bz2
uGFX-5f268adaaa2687e8e33f55890565d14c0ae83dfc.zip
lcdDrawRect() speed improvement
Diffstat (limited to 'glcd')
-rw-r--r--glcd/glcd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/glcd/glcd.c b/glcd/glcd.c
index 5d8804b5..b7b3b7e0 100644
--- a/glcd/glcd.c
+++ b/glcd/glcd.c
@@ -454,9 +454,7 @@ void lcdDrawRect(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint8_t fil
y0 = TempY;
}
if(filled) {
- for(i=x0; i<x1; i++)
- for(j=y0; j<y1; j++)
- lcdDrawPixel(i , j , color);
+ lcdFillArea(x0, y0, x1, y1, color);
} else {
lcdDrawLine(x0, y0, x1, y0, color);
lcdDrawLine(x0, y1, x1, y1, color);