From da83b0955f86f22799186df294d0ab32488798fb Mon Sep 17 00:00:00 2001 From: mobyfab Date: Tue, 18 Sep 2012 22:55:02 +0200 Subject: Some cleaning. Fixed and tested DMA blitarea for SSD1963. --- src/touchpad.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/touchpad.c b/src/touchpad.c index 5e81738b..e531af80 100644 --- a/src/touchpad.c +++ b/src/touchpad.c @@ -52,7 +52,7 @@ /*===========================================================================*/ /* Driver local variables. */ /*===========================================================================*/ -volatile static struct cal cal = { +static volatile struct cal cal = { 1, 1, 0, 0 }; @@ -167,7 +167,8 @@ uint16_t tpReadX(void) { return SCREEN_WIDTH - x; case landscapeInv: return y; - } + } + return 0; } /** @@ -193,6 +194,7 @@ uint16_t tpReadY(void) { case landscapeInv: return SCREEN_WIDTH - x; } + return 0; } void tpCalibrate(void) { @@ -202,7 +204,7 @@ void tpCalibrate(void) { uint16_t points[2][2]; uint8_t i; - gdispClear(Red); + gdispClear(Red); gdispFillStringBox(0, 10, gdispGetWidth(), 30, "Calibration", &fontUI2Double, White, Red, justifyCenter); for(i = 0; i < 2; i++) { -- cgit v1.2.3