aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2012-11-17 14:05:23 +0100
committerJoel Bodenmann <joel@unormal.org>2012-11-17 14:05:23 +0100
commit8515ed53f517eb497ca619ec2c24429a9dcd580e (patch)
treed3ea57c1abc3747d353fcb600988d4cde1eea4d0 /src
parent04cb37f834bf2ba60c25d1f8d315a9462ad77f50 (diff)
downloaduGFX-8515ed53f517eb497ca619ec2c24429a9dcd580e.tar.gz
uGFX-8515ed53f517eb497ca619ec2c24429a9dcd580e.tar.bz2
uGFX-8515ed53f517eb497ca619ec2c24429a9dcd580e.zip
more SSD1289 and touchscreen workaround
Diffstat (limited to 'src')
-rw-r--r--src/touchscreen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/touchscreen.c b/src/touchscreen.c
index 14eba4c5..7b562c32 100644
--- a/src/touchscreen.c
+++ b/src/touchscreen.c
@@ -294,7 +294,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);