diff options
author | inmarket <andrewh@inmarket.com.au> | 2015-11-04 15:05:47 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2015-11-04 15:05:47 +1000 |
commit | 583b314db2051636f1e8d988f6ce0447272f5140 (patch) | |
tree | 64d051584e8fe85b0b01a5295abcb03e17f40b2a /src/ginput | |
parent | 1ed7559ef0a3a34799dcc8af301638312bda3cc7 (diff) | |
download | uGFX-583b314db2051636f1e8d988f6ce0447272f5140.tar.gz uGFX-583b314db2051636f1e8d988f6ce0447272f5140.tar.bz2 uGFX-583b314db2051636f1e8d988f6ce0447272f5140.zip |
Fix compiler errors for non-gcc compilers.
Diffstat (limited to 'src/ginput')
-rw-r--r-- | src/ginput/ginput_mouse.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ginput/ginput_mouse.c b/src/ginput/ginput_mouse.c index 881d6339..f149217d 100644 --- a/src/ginput/ginput_mouse.c +++ b/src/ginput/ginput_mouse.c @@ -56,8 +56,10 @@ static GTIMER_DECL(MouseTimer); #include <string.h> // Required for memcpy static GFXINLINE void CalibrationTransform(GMouseReading *pt, const GMouseCalibration *c) { - coord_t x = (coord_t) (c->ax * pt->x + c->bx * pt->y + c->cx); - coord_t y = (coord_t) (c->ay * pt->x + c->by * pt->y + c->cy); + coord_t x, y; + + x = (coord_t) (c->ax * pt->x + c->bx * pt->y + c->cx); + y = (coord_t) (c->ay * pt->x + c->by * pt->y + c->cy); pt->x = x; pt->y = y; |