From a96426d5f6cdda69b49a19f0f6e5c1bb4840998e Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 25 Nov 2008 00:48:25 +0000 Subject: [PATCH] --- test/testsprite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testsprite.c b/test/testsprite.c index ba267780d..5f541a145 100644 --- a/test/testsprite.c +++ b/test/testsprite.c @@ -311,8 +311,8 @@ main(int argc, char *argv[]) /* 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);