aboutsummaryrefslogtreecommitdiffstats
path: root/src/gdisp/gdisp.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-07-08 13:51:20 +1000
committerinmarket <andrewh@inmarket.com.au>2018-07-08 13:51:20 +1000
commite61f0ae4248bdafeace54c330d488904a495c045 (patch)
tree448c5f4e99ae94fd41a99b3082b35208b2ba7c5f /src/gdisp/gdisp.c
parentd9258efd4dac2b7939bb11707cbbdfa135c02bf5 (diff)
downloaduGFX-e61f0ae4248bdafeace54c330d488904a495c045.tar.gz
uGFX-e61f0ae4248bdafeace54c330d488904a495c045.tar.bz2
uGFX-e61f0ae4248bdafeace54c330d488904a495c045.zip
Added type gOrientation to replace V2.x orientation_t, and values gOrientationX replace GDISP_ROTATE_X
Diffstat (limited to 'src/gdisp/gdisp.c')
-rw-r--r--src/gdisp/gdisp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gdisp/gdisp.c b/src/gdisp/gdisp.c
index b1180b92..d8f58da6 100644
--- a/src/gdisp/gdisp.c
+++ b/src/gdisp/gdisp.c
@@ -712,7 +712,7 @@ unsigned gdispGetDisplayCount(void) {
gCoord gdispGGetWidth(GDisplay *g) { return g->g.Width; }
gCoord gdispGGetHeight(GDisplay *g) { return g->g.Height; }
gPowermode gdispGGetPowerMode(GDisplay *g) { return g->g.Powermode; }
-orientation_t gdispGGetOrientation(GDisplay *g) { return g->g.Orientation; }
+gOrientation gdispGGetOrientation(GDisplay *g) { return g->g.Orientation; }
uint8_t gdispGGetBacklight(GDisplay *g) { return g->g.Backlight; }
uint8_t gdispGGetContrast(GDisplay *g) { return g->g.Contrast; }
@@ -2874,12 +2874,12 @@ void gdispGBlitArea(GDisplay *g, gCoord x, gCoord y, gCoord cx, gCoord cy, gCoor
g->p.x = what;
g->p.ptr = value;
if (what == GDISP_CONTROL_ORIENTATION) {
- switch ((orientation_t) value) {
- case GDISP_ROTATE_LANDSCAPE:
- g->p.ptr = g->g.Width >= g->g.Height ? (void *)GDISP_ROTATE_0 : (void *)GDISP_ROTATE_90;
+ switch ((gOrientation) value) {
+ case gOrientationLandscape:
+ g->p.ptr = g->g.Width >= g->g.Height ? (void *)gOrientation0 : (void *)gOrientation90;
break;
- case GDISP_ROTATE_PORTRAIT:
- g->p.ptr = g->g.Width >= g->g.Height ? (void *)GDISP_ROTATE_90 : (void *)GDISP_ROTATE_0;
+ case gOrientationPortrait:
+ g->p.ptr = g->g.Width >= g->g.Height ? (void *)gOrientation90 : (void *)gOrientation0;
break;
default:
break;