aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/SSD1289/ssd1289_lld.c.h
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2012-10-05 09:09:59 +0200
committerJoel Bodenmann <joel@unormal.org>2012-10-05 09:09:59 +0200
commitd6b17a157392b40a1131fe70d798ad3eaab6378f (patch)
tree8d5b419c125057a6915d2d4da2e2c0d4138274b3 /drivers/gdisp/SSD1289/ssd1289_lld.c.h
parenta03b2fbf5d4ee3d92323ba0674d833b0e9646b28 (diff)
downloaduGFX-d6b17a157392b40a1131fe70d798ad3eaab6378f.tar.gz
uGFX-d6b17a157392b40a1131fe70d798ad3eaab6378f.tar.bz2
uGFX-d6b17a157392b40a1131fe70d798ad3eaab6378f.zip
rename of orientation
Diffstat (limited to 'drivers/gdisp/SSD1289/ssd1289_lld.c.h')
-rw-r--r--drivers/gdisp/SSD1289/ssd1289_lld.c.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gdisp/SSD1289/ssd1289_lld.c.h b/drivers/gdisp/SSD1289/ssd1289_lld.c.h
index e59b388c..fc71b9cc 100644
--- a/drivers/gdisp/SSD1289/ssd1289_lld.c.h
+++ b/drivers/gdisp/SSD1289/ssd1289_lld.c.h
@@ -265,19 +265,19 @@ static void lld_lcdSetCursor(uint16_t x, uint16_t y) {
* Use a bit mask to make sure they are not set too high
*/
switch(GDISP.Orientation) {
- case portraitInv:
+ case GDISP_ROTATE_0Inv:
lld_lcdWriteReg(0x004e, (SCREEN_WIDTH-1-x) & 0x00FF);
lld_lcdWriteReg(0x004f, (SCREEN_HEIGHT-1-y) & 0x01FF);
break;
- case portrait:
+ case GDISP_ROTATE_0:
lld_lcdWriteReg(0x004e, x & 0x00FF);
lld_lcdWriteReg(0x004f, y & 0x01FF);
break;
- case landscape:
+ case GDISP_ROTATE_90:
lld_lcdWriteReg(0x004e, y & 0x00FF);
lld_lcdWriteReg(0x004f, x & 0x01FF);
break;
- case landscapeInv:
+ case GDISP_ROTATE_90Inv:
lld_lcdWriteReg(0x004e, (SCREEN_WIDTH - y - 1) & 0x00FF);
lld_lcdWriteReg(0x004f, (SCREEN_HEIGHT - x - 1) & 0x01FF);
break;
@@ -297,22 +297,22 @@ static void lld_lcdSetViewPort(uint16_t x, uint16_t y, uint16_t cx, uint16_t cy)
*/
switch(GDISP.Orientation) {
- case portrait:
+ case GDISP_ROTATE_0:
lld_lcdWriteReg(0x44, (((x+cx-1) << 8) & 0xFF00 ) | (x & 0x00FF));
lld_lcdWriteReg(0x45, y & 0x01FF);
lld_lcdWriteReg(0x46, (y+cy-1) & 0x01FF);
break;
- case landscape:
+ case GDISP_ROTATE_90:
lld_lcdWriteReg(0x44, (((x+cx-1) << 8) & 0xFF00) | ((y+cy) & 0x00FF));
lld_lcdWriteReg(0x45, x & 0x01FF);
lld_lcdWriteReg(0x46, (x+cx-1) & 0x01FF);
break;
- case portraitInv:
+ case GDISP_ROTATE_0Inv:
lld_lcdWriteReg(0x44, (((SCREEN_WIDTH-x-1) & 0x00FF) << 8) | ((SCREEN_WIDTH - (x+cx)) & 0x00FF));
lld_lcdWriteReg(0x45, (SCREEN_HEIGHT-(y+cy)) & 0x01FF);
lld_lcdWriteReg(0x46, (SCREEN_HEIGHT-y-1) & 0x01FF);
break;
- case landscapeInv:
+ case GDISP_ROTATE_90Inv:
lld_lcdWriteReg(0x44, (((SCREEN_WIDTH - y - 1) & 0x00FF) << 8) | ((SCREEN_WIDTH - (y+cy)) & 0x00FF));
lld_lcdWriteReg(0x45, (SCREEN_HEIGHT - (x+cx)) & 0x01FF);
lld_lcdWriteReg(0x46, (SCREEN_HEIGHT - x - 1) & 0x01FF);