aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoel Bodenmann <joel.bodenmann@hevs.ch>2012-10-23 02:57:38 +0200
committerJoel Bodenmann <joel.bodenmann@hevs.ch>2012-10-23 02:57:38 +0200
commit34a64b13c497ee20fd994c20d4f0aef8081c0aa9 (patch)
tree5988eb596cc4f1f8f203e0154b328fc9bb8bdeca /src
parent8da73efced9b016ef82b2540d1926229c51f3fb0 (diff)
downloaduGFX-34a64b13c497ee20fd994c20d4f0aef8081c0aa9.tar.gz
uGFX-34a64b13c497ee20fd994c20d4f0aef8081c0aa9.tar.bz2
uGFX-34a64b13c497ee20fd994c20d4f0aef8081c0aa9.zip
whitespaces
Diffstat (limited to 'src')
-rw-r--r--src/touchpad.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/touchpad.c b/src/touchpad.c
index e4312bc8..353a4f01 100644
--- a/src/touchpad.c
+++ b/src/touchpad.c
@@ -162,6 +162,7 @@ uint16_t tpReadX(void) {
x = cal.xm * _tpReadRealX() + cal.xn;
y = cal.ym * _tpReadRealY() + cal.yn;
#endif
+
switch(gdispGetOrientation()) {
case GDISP_ROTATE_0:
return x;
@@ -193,6 +194,7 @@ uint16_t tpReadY(void) {
x = cal.xm * _tpReadRealX() + cal.xn;
y = cal.ym * _tpReadRealY() + cal.yn;
#endif
+
switch(gdispGetOrientation()) {
case GDISP_ROTATE_0:
return y;