Fix compiler errors for non-gcc compilers.
This commit is contained in:
parent
1ed7559ef0
commit
583b314db2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user