diff options
author | Joel Bodenmann <joel@seriouslyembedded.com> | 2015-11-04 07:11:49 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@seriouslyembedded.com> | 2015-11-04 07:11:49 +0100 |
commit | df76759cd43e4d6edcf089c05420ab2180ff4491 (patch) | |
tree | f96c4b3392b0166cf6ee0838f269139918fafdbb /src/ginput | |
parent | 96789916e3c6b8db8f4b1aba4ff5c36b0137bf3f (diff) | |
parent | b276bd7a4b3a0d213d95fab3e2a425fc8be92fe6 (diff) | |
download | uGFX-df76759cd43e4d6edcf089c05420ab2180ff4491.tar.gz uGFX-df76759cd43e4d6edcf089c05420ab2180ff4491.tar.bz2 uGFX-df76759cd43e4d6edcf089c05420ab2180ff4491.zip |
Merge branch 'master' of https://bitbucket.org/Tectu/ugfx
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; |