touchscreen fix

ugfx_release_2.6
Joel Bodenmann 2012-11-26 00:35:02 +01:00
parent 0ab8da8c78
commit ac5267af6a
1 changed files with 2 additions and 6 deletions

View File

@ -184,7 +184,7 @@ coord_t tsReadX(void) {
y = _tsReadRealY(); y = _tsReadRealY();
#endif #endif
//_tsTransform(&x, &y); _tsTransform(&x, &y);
switch(gdispGetOrientation()) { switch(gdispGetOrientation()) {
case GDISP_ROTATE_0: case GDISP_ROTATE_0:
@ -218,7 +218,7 @@ coord_t tsReadY(void) {
y = _tsReadRealY(); y = _tsReadRealY();
#endif #endif
//_tsTransform(&x, &y); _tsTransform(&x, &y);
switch(gdispGetOrientation()) { switch(gdispGetOrientation()) {
case GDISP_ROTATE_0: case GDISP_ROTATE_0:
@ -276,9 +276,6 @@ coord_t tsReadY(void) {
* @api * @api
*/ */
void tsCalibrate(void) { void tsCalibrate(void) {
#if 0
const uint16_t height = gdispGetHeight(); const uint16_t height = gdispGetHeight();
const uint16_t width = gdispGetWidth(); const uint16_t width = gdispGetWidth();
const coord_t cross[][2] = {{(width / 4), (height / 4)}, const coord_t cross[][2] = {{(width / 4), (height / 4)},
@ -365,7 +362,6 @@ calibrate:
#if TOUCHSCREEN_STORE_CALIBRATION #if TOUCHSCREEN_STORE_CALIBRATION
ts_store_calibration_lld(cal); ts_store_calibration_lld(cal);
#endif #endif
#endif
} }
#endif /* GFX_USE_TOUCHSCREEN */ #endif /* GFX_USE_TOUCHSCREEN */