aboutsummaryrefslogtreecommitdiffstats
path: root/src/touchpad.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/touchpad.c')
-rw-r--r--src/touchpad.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/touchpad.c b/src/touchpad.c
index f0da743c..bdd6b386 100644
--- a/src/touchpad.c
+++ b/src/touchpad.c
@@ -154,13 +154,13 @@ uint16_t tpReadX(void) {
y = cal.ym * _tpReadRealY() + cal.yn;
switch(gdispGetOrientation()) {
- case portrait:
+ case GDISP_ROTATE_0:
return x;
- case landscape:
+ case GDISP_ROTATE_90:
return SCREEN_HEIGHT - y;
- case portraitInv:
+ case GDISP_ROTATE_180:
return SCREEN_WIDTH - x;
- case landscapeInv:
+ case GDISP_ROTATE_270:
return y;
}
@@ -181,13 +181,13 @@ uint16_t tpReadY(void) {
y = cal.ym * _tpReadRealY() + cal.yn;
switch(gdispGetOrientation()) {
- case portrait:
+ case GDISP_ROTATE_0:
return y;
- case landscape:
+ case GDISP_ROTATE_90:
return x;
- case portraitInv:
+ case GDISP_ROTATE_180:
return SCREEN_HEIGHT - y;
- case landscapeInv:
+ case GDISP_ROTATE_270:
return SCREEN_WIDTH - x;
}