mirror of https://github.com/encounter/SDL.git
Fixed bug 2475 - Incorrect SDL_Log() format specifiers in test/testgesture.c
rettichschnidi The floats should not be interpreted as integers. Patch against the current head attached.
This commit is contained in:
parent
43c991969e
commit
353feb5c76
|
@ -266,19 +266,19 @@ int main(int argc, char* argv[])
|
||||||
break;
|
break;
|
||||||
case SDL_FINGERMOTION:
|
case SDL_FINGERMOTION:
|
||||||
#if VERBOSE
|
#if VERBOSE
|
||||||
SDL_Log("Finger: %i,x: %i, y: %i",event.tfinger.fingerId,
|
SDL_Log("Finger: %"PRIs64",x: %f, y: %f",event.tfinger.fingerId,
|
||||||
event.tfinger.x,event.tfinger.y);
|
event.tfinger.x,event.tfinger.y);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case SDL_FINGERDOWN:
|
case SDL_FINGERDOWN:
|
||||||
#if VERBOSE
|
#if VERBOSE
|
||||||
SDL_Log("Finger: %"PRIs64" down - x: %i, y: %i",
|
SDL_Log("Finger: %"PRIs64" down - x: %f, y: %f",
|
||||||
event.tfinger.fingerId,event.tfinger.x,event.tfinger.y);
|
event.tfinger.fingerId,event.tfinger.x,event.tfinger.y);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case SDL_FINGERUP:
|
case SDL_FINGERUP:
|
||||||
#if VERBOSE
|
#if VERBOSE
|
||||||
SDL_Log("Finger: %"PRIs64" up - x: %i, y: %i",
|
SDL_Log("Finger: %"PRIs64" up - x: %f, y: %f",
|
||||||
event.tfinger.fingerId,event.tfinger.x,event.tfinger.y);
|
event.tfinger.fingerId,event.tfinger.x,event.tfinger.y);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue