Skip to content

Commit

Permalink
Fixed bug 2475 - Incorrect SDL_Log() format specifiers in test/testge…
Browse files Browse the repository at this point in the history
…sture.c

rettichschnidi

The floats should not be interpreted as integers. Patch against the current head attached.
  • Loading branch information
slouken committed Apr 18, 2014
1 parent 43c9919 commit 353feb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/testgesture.c
Expand Up @@ -266,19 +266,19 @@ int main(int argc, char* argv[])
break;
case SDL_FINGERMOTION:
#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);
#endif
break;
case SDL_FINGERDOWN:
#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);
#endif
break;
case SDL_FINGERUP:
#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);
#endif
break;
Expand Down

0 comments on commit 353feb5

Please sign in to comment.