From 9f8ad7875cd1515457a8022448a4ada09299026a Mon Sep 17 00:00:00 2001 From: Tony Pitman Date: Tue, 25 Aug 2020 18:01:10 -0600 Subject: [PATCH] Added touch flip flags to TFT_eSPI driver. --- src/GUIslice_drv_tft_espi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GUIslice_drv_tft_espi.cpp b/src/GUIslice_drv_tft_espi.cpp index 4e75a0380..b38d34a5b 100755 --- a/src/GUIslice_drv_tft_espi.cpp +++ b/src/GUIslice_drv_tft_espi.cpp @@ -2132,8 +2132,8 @@ bool gslc_DrvRotate(gslc_tsGui* pGui, uint8_t nRotation) #if !defined(DRV_TOUCH_NONE) // Correct touch mapping according to current rotation mode pGui->nSwapXY = TOUCH_ROTATION_SWAPXY(pGui->nRotation); - pGui->nFlipX = TOUCH_ROTATION_FLIPX(pGui->nRotation); - pGui->nFlipY = TOUCH_ROTATION_FLIPY(pGui->nRotation); + pGui->nFlipX = TOUCH_ROTATION_FLIPX(pGui->nRotation) | ADATOUCH_FLIP_X; + pGui->nFlipY = TOUCH_ROTATION_FLIPY(pGui->nRotation) | ADATOUCH_FLIP_Y; #endif // !DRV_TOUCH_NONE // Mark the current page ask requiring redraw