aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/SSD1289/ssd1289_lld.c.h
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2012-10-05 09:12:57 +0200
committerJoel Bodenmann <joel@unormal.org>2012-10-05 09:12:57 +0200
commitec637ad2df8bc938813ece64496f0965743fabfc (patch)
tree576ff32fc989b9c85d0c324148a21712002d92a0 /drivers/gdisp/SSD1289/ssd1289_lld.c.h
parentd6b17a157392b40a1131fe70d798ad3eaab6378f (diff)
downloaduGFX-ec637ad2df8bc938813ece64496f0965743fabfc.tar.gz
uGFX-ec637ad2df8bc938813ece64496f0965743fabfc.tar.bz2
uGFX-ec637ad2df8bc938813ece64496f0965743fabfc.zip
Revert "rename of orientation"
This reverts commit d6b17a157392b40a1131fe70d798ad3eaab6378f.
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 fc71b9cc..e59b388c 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 GDISP_ROTATE_0Inv:
+ case portraitInv:
lld_lcdWriteReg(0x004e, (SCREEN_WIDTH-1-x) & 0x00FF);
lld_lcdWriteReg(0x004f, (SCREEN_HEIGHT-1-y) & 0x01FF);
break;
- case GDISP_ROTATE_0:
+ case portrait:
lld_lcdWriteReg(0x004e, x & 0x00FF);
lld_lcdWriteReg(0x004f, y & 0x01FF);
break;
- case GDISP_ROTATE_90:
+ case landscape:
lld_lcdWriteReg(0x004e, y & 0x00FF);
lld_lcdWriteReg(0x004f, x & 0x01FF);
break;
- case GDISP_ROTATE_90Inv:
+ case landscapeInv:
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 GDISP_ROTATE_0:
+ case portrait:
lld_lcdWriteReg(0x44, (((x+cx-1) << 8) & 0xFF00 ) | (x & 0x00FF));
lld_lcdWriteReg(0x45, y & 0x01FF);
lld_lcdWriteReg(0x46, (y+cy-1) & 0x01FF);
break;
- case GDISP_ROTATE_90:
+ case landscape:
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 GDISP_ROTATE_0Inv:
+ case portraitInv:
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 GDISP_ROTATE_90Inv:
+ case landscapeInv:
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);