aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTectu <joel@unormal.org>2012-06-15 21:55:31 +0200
committerTectu <joel@unormal.org>2012-06-15 21:55:31 +0200
commit8ebd8887d382d882ca062ee58bd395b9cc7e6a19 (patch)
tree6e7b64571a99b84d98e5e21a85c2630ad9aeded0
parent5defef1c1dccddea6706ffdb13a124f4a57a3c5b (diff)
downloaduGFX-8ebd8887d382d882ca062ee58bd395b9cc7e6a19.tar.gz
uGFX-8ebd8887d382d882ca062ee58bd395b9cc7e6a19.tar.bz2
uGFX-8ebd8887d382d882ca062ee58bd395b9cc7e6a19.zip
Revert "lcdFillArea() is now lld"
This reverts commit 5defef1c1dccddea6706ffdb13a124f4a57a3c5b.
-rw-r--r--drivers/ssd1289_lld.c4
-rw-r--r--drivers/ssd1289_lld.h3
-rw-r--r--glcd.c14
3 files changed, 14 insertions, 7 deletions
diff --git a/drivers/ssd1289_lld.c b/drivers/ssd1289_lld.c
index 0301f4da..c6295918 100644
--- a/drivers/ssd1289_lld.c
+++ b/drivers/ssd1289_lld.c
@@ -150,10 +150,6 @@ void lld_lcdClear(uint16_t color) {
Set_CS;
}
-void lld_lcdFillArea(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint16_t color) {
-
-}
-
uint16_t lld_lcdGetPixelColor(uint16_t x, uint16_t y) {
uint16_t dummy;
diff --git a/drivers/ssd1289_lld.h b/drivers/ssd1289_lld.h
index 44b404ca..1ca187f3 100644
--- a/drivers/ssd1289_lld.h
+++ b/drivers/ssd1289_lld.h
@@ -21,8 +21,7 @@ void lld_lcdSetOrientation(uint8_t newOrientation);
void lld_lcdSetWindow(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1);
void lld_lcdClear(uint16_t color);
void lld_lcdDrawPixel(uint16_t x, uint16_t y, uint16_t color);
-void lld_lcdDrawPixel(uint16_t x, uint16_t y, uint16_t color);
-void lld_lcdFillArea(uint16_t x0, uint16_t y0, uint16_t x1, uint16_t y1, uint16_t color);
+uint16_t lld_lcdGetPixelColor(uint16_t x, uint16_t y);
uint16_t lld_lcdGetOrientation(void);
uint16_t lld_lcdGetHeight(void);
uint16_t lld_lcdGetWidth(void);
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) {