diff options
author | Joel Bodenmann <joel@unormal.org> | 2012-11-26 00:35:02 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2012-11-26 00:35:02 +0100 |
commit | ac5267af6af5508d4391fddb3d27c8d45879950a (patch) | |
tree | 54b4ded1928d9f03d74b74aefe333cc93f047ba9 /src | |
parent | 0ab8da8c782ab3892961a4ab6c76cc9e8a43c193 (diff) | |
download | uGFX-ac5267af6af5508d4391fddb3d27c8d45879950a.tar.gz uGFX-ac5267af6af5508d4391fddb3d27c8d45879950a.tar.bz2 uGFX-ac5267af6af5508d4391fddb3d27c8d45879950a.zip |
touchscreen fix
Diffstat (limited to 'src')
-rw-r--r-- | src/touchscreen.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/touchscreen.c b/src/touchscreen.c index 265243a4..0fa5402e 100644 --- a/src/touchscreen.c +++ b/src/touchscreen.c @@ -184,7 +184,7 @@ coord_t tsReadX(void) { y = _tsReadRealY();
#endif
- //_tsTransform(&x, &y);
+ _tsTransform(&x, &y);
switch(gdispGetOrientation()) {
case GDISP_ROTATE_0:
@@ -218,7 +218,7 @@ coord_t tsReadY(void) { y = _tsReadRealY();
#endif
- //_tsTransform(&x, &y);
+ _tsTransform(&x, &y);
switch(gdispGetOrientation()) {
case GDISP_ROTATE_0:
@@ -276,9 +276,6 @@ coord_t tsReadY(void) { * @api
*/
void tsCalibrate(void) {
-#if 0
-
-
const uint16_t height = gdispGetHeight();
const uint16_t width = gdispGetWidth();
const coord_t cross[][2] = {{(width / 4), (height / 4)},
@@ -365,7 +362,6 @@ calibrate: #if TOUCHSCREEN_STORE_CALIBRATION
ts_store_calibration_lld(cal);
#endif
-#endif
}
#endif /* GFX_USE_TOUCHSCREEN */
|