# HG changeset patch # User Sam Lantinga # Date 1227574105 0 # Node ID 9bbe3bd94be804059da5c950b0139d5d6a01a6f4 # Parent e33ad7ebb7ebe25dfbcee9e14a1f463687c62457 diff -r e33ad7ebb7eb -r 9bbe3bd94be8 test/testsprite.c --- a/test/testsprite.c Tue Nov 25 00:29:44 2008 +0000 +++ b/test/testsprite.c Tue Nov 25 00:48:25 2008 +0000 @@ -311,8 +311,8 @@ /* Print out some timing information */ now = SDL_GetTicks(); if (now > then) { - printf("%2.2f frames per second\n", - ((double) frames * 1000) / (now - then)); + double fps = ((double) frames * 1000) / (now - then); + printf("%2.2f frames per second\n", fps); } SDL_Quit(); return (0);