Commit f341bd32 authored by Sam Lantinga's avatar Sam Lantinga

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403245
parent 32593c2b
...@@ -311,8 +311,8 @@ main(int argc, char *argv[]) ...@@ -311,8 +311,8 @@ main(int argc, char *argv[])
/* Print out some timing information */ /* Print out some timing information */
now = SDL_GetTicks(); now = SDL_GetTicks();
if (now > then) { if (now > then) {
printf("%2.2f frames per second\n", double fps = ((double) frames * 1000) / (now - then);
((double) frames * 1000) / (now - then)); printf("%2.2f frames per second\n", fps);
} }
SDL_Quit(); SDL_Quit();
return (0); return (0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment