aboutsummaryrefslogtreecommitdiffstats
path: root/glcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'glcd.c')
-rw-r--r--glcd.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/glcd.c b/glcd.c
index 1af145cf..8c86c8cf 100644
--- a/glcd.c
+++ b/glcd.c
@@ -218,7 +218,19 @@ uint16_t lcdBGR2RGB(uint16_t color) {
}
void lcdFillArea(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint16_t color) {
- lld_lcdFillArea(x0, y0, x1, y1, color);
+ lcdDrawRect(x0, y0, x1, y1, filled, color);
+ /*
+ uint32_t index = 0, area;
+
+ area = ((x1-x0)*(y1-y0));
+
+ lcdSetWindow(x0, y0, x1, y1);
+ Clr_CS;
+ lcdWriteIndex(0x0022);
+ for(index = 0; index < area; index++)
+ lcdWriteData(color);
+ Set_CS;
+ */
}
void lcdDrawRect(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint8_t filled, uint16_t color) {