aboutsummaryrefslogtreecommitdiffstats
path: root/src/touchscreen.c
diff options
context:
space:
mode:
authorAndrew Hannam <andrewh@inmarket.com.au>2012-11-25 22:44:25 -0800
committerAndrew Hannam <andrewh@inmarket.com.au>2012-11-25 22:44:25 -0800
commit6cc2bc280cc7dc4cb546d94219210d65c15df2e1 (patch)
tree54b4ded1928d9f03d74b74aefe333cc93f047ba9 /src/touchscreen.c
parentd1836d49fee08eaa08a837e9f6176f3d41fbb735 (diff)
parentac5267af6af5508d4391fddb3d27c8d45879950a (diff)
downloaduGFX-6cc2bc280cc7dc4cb546d94219210d65c15df2e1.tar.gz
uGFX-6cc2bc280cc7dc4cb546d94219210d65c15df2e1.tar.bz2
uGFX-6cc2bc280cc7dc4cb546d94219210d65c15df2e1.zip
Merge pull request #8 from Tectu/master
Merge Tectu Changes
Diffstat (limited to 'src/touchscreen.c')
-rw-r--r--src/touchscreen.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/touchscreen.c b/src/touchscreen.c
index 14eba4c5..0fa5402e 100644
--- a/src/touchscreen.c
+++ b/src/touchscreen.c
@@ -33,14 +33,6 @@
#if GFX_USE_TOUCHSCREEN || defined(__DOXYGEN__)
/*===========================================================================*/
-/* Driver local definitions. */
-/*===========================================================================*/
-
-/*===========================================================================*/
-/* Driver exported variables. */
-/*===========================================================================*/
-
-/*===========================================================================*/
/* Driver local variables. */
/*===========================================================================*/
static struct cal_t *cal;
@@ -294,7 +286,10 @@ void tsCalibrate(void) {
int32_t px, py;
uint8_t i, j;
+ #if GDISP_NEED_CONTROL
gdispSetOrientation(GDISP_ROTATE_0);
+ #endif
+
gdispClear(Blue);
gdispFillStringBox(0, 5, gdispGetWidth(), 30, "Calibration", &fontUI2Double, White, Blue, justifyCenter);