From d537ac80f67c402673bd14a6ad4b6b8e094ae8a3 Mon Sep 17 00:00:00 2001 From: avolkov Date: Fri, 7 Feb 2003 23:10:01 +0000 Subject: [PATCH] Fixes earlier introduced fps bug (oops) git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@716 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/graphics/sdl/sdl_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc2/src/sc2code/libs/graphics/sdl/sdl_common.c b/sc2/src/sc2code/libs/graphics/sdl/sdl_common.c index 808e56fbb..651cd9aa0 100644 --- a/sc2/src/sc2code/libs/graphics/sdl/sdl_common.c +++ b/sc2/src/sc2code/libs/graphics/sdl/sdl_common.c @@ -432,7 +432,7 @@ TFB_ComputeFPS () if (fps_counter > FPS_PERIOD) { fprintf (stderr, "fps %.2f, effective %.2f\n", - (float)FPS_PERIOD / delta_time, + 1000.0 / delta_time, 1000.0 * RenderedFrames / fps_counter); fps_counter = 0;