diff options
author | Joel Bodenmann <joel@unormal.org> | 2012-10-05 09:09:59 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2012-10-05 09:09:59 +0200 |
commit | d6b17a157392b40a1131fe70d798ad3eaab6378f (patch) | |
tree | 8d5b419c125057a6915d2d4da2e2c0d4138274b3 /drivers/gdisp/Nokia6610 | |
parent | a03b2fbf5d4ee3d92323ba0674d833b0e9646b28 (diff) | |
download | uGFX-d6b17a157392b40a1131fe70d798ad3eaab6378f.tar.gz uGFX-d6b17a157392b40a1131fe70d798ad3eaab6378f.tar.bz2 uGFX-d6b17a157392b40a1131fe70d798ad3eaab6378f.zip |
rename of orientation
Diffstat (limited to 'drivers/gdisp/Nokia6610')
-rw-r--r-- | drivers/gdisp/Nokia6610/gdisp_lld.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gdisp/Nokia6610/gdisp_lld.c b/drivers/gdisp/Nokia6610/gdisp_lld.c index ae069e8c..12ceb819 100644 --- a/drivers/gdisp/Nokia6610/gdisp_lld.c +++ b/drivers/gdisp/Nokia6610/gdisp_lld.c @@ -255,7 +255,7 @@ bool_t GDISP_LLD(init)(void) { /* Initialise the GDISP structure to match */
GDISP.Width = SCREEN_WIDTH;
GDISP.Height = SCREEN_HEIGHT;
- GDISP.Orientation = portrait;
+ GDISP.Orientation = GDISP_ROTATE_0;
GDISP.Powermode = powerOn;
GDISP.Backlight = 100;
GDISP.Contrast = INITIAL_CONTRAST;
@@ -539,22 +539,22 @@ void GDISP_LLD(drawpixel)(coord_t x, coord_t y, color_t color) { // WriteSpiData(0x48); // no mirror Y (temporary to satisfy Olimex bmptoarray utility)
// WriteSpiData(0xC8); // restore to (mirror x and y, reverse rgb)
switch((gdisp_orientation_t)value) {
- case portrait:
+ case GDISP_ROTATE_0:
/* Code here */
GDISP.Height = SCREEN_HEIGHT;
GDISP.Width = SCREEN_WIDTH;
break;
- case landscape:
+ case GDISP_ROTATE_90:
/* Code here */
GDISP.Height = SCREEN_WIDTH;
GDISP.Width = SCREEN_HEIGHT;
break;
- case portraitInv:
+ case GDISP_ROTATE_0Inv:
/* Code here */
GDISP.Height = SCREEN_HEIGHT;
GDISP.Width = SCREEN_WIDTH;
break;
- case landscapeInv:
+ case GDISP_ROTATE_90Inv:
/* Code here */
GDISP.Height = SCREEN_WIDTH;
GDISP.Width = SCREEN_HEIGHT;
|