diff options
author | Joel Bodenmann <joel@unormal.org> | 2012-10-05 09:12:57 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2012-10-05 09:12:57 +0200 |
commit | ec637ad2df8bc938813ece64496f0965743fabfc (patch) | |
tree | 576ff32fc989b9c85d0c324148a21712002d92a0 /src | |
parent | d6b17a157392b40a1131fe70d798ad3eaab6378f (diff) | |
download | uGFX-ec637ad2df8bc938813ece64496f0965743fabfc.tar.gz uGFX-ec637ad2df8bc938813ece64496f0965743fabfc.tar.bz2 uGFX-ec637ad2df8bc938813ece64496f0965743fabfc.zip |
Revert "rename of orientation"
This reverts commit d6b17a157392b40a1131fe70d798ad3eaab6378f.
Diffstat (limited to 'src')
-rw-r--r-- | src/touchpad.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/touchpad.c b/src/touchpad.c index 9d1c1278..f0da743c 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 GDISP_ROTATE_0: + case portrait: return x; - case GDISP_ROTATE_90: + case landscape: return SCREEN_HEIGHT - y; - case GDISP_ROTATE_0Inv: + case portraitInv: return SCREEN_WIDTH - x; - case GDISP_ROTATE_90Inv: + case landscapeInv: return y; } @@ -181,13 +181,13 @@ uint16_t tpReadY(void) { y = cal.ym * _tpReadRealY() + cal.yn; switch(gdispGetOrientation()) { - case GDISP_ROTATE_0: + case portrait: return y; - case GDISP_ROTATE_90: + case landscape: return x; - case GDISP_ROTATE_0Inv: + case portraitInv: return SCREEN_HEIGHT - y; - case GDISP_ROTATE_90Inv: + case landscapeInv: return SCREEN_WIDTH - x; } |