Mercurial > sdl-ios-xcode
changeset 2784:9bbe3bd94be8
(none)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 25 Nov 2008 00:48:25 +0000 |
parents | e33ad7ebb7eb |
children | fa1095d42a5b |
files | test/testsprite.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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);