From 8422f0ab7cb66f27234f9d16da02a6e94f2bce5c Mon Sep 17 00:00:00 2001 From: riccardom Date: Sat, 12 Mar 2011 16:41:08 +0000 Subject: [PATCH] cli: put 'now' variable declaration were due Note to self: this is C not python. --- desmume/src/cli/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/desmume/src/cli/main.cpp b/desmume/src/cli/main.cpp index 8001187c8..b7d60d291 100644 --- a/desmume/src/cli/main.cpp +++ b/desmume/src/cli/main.cpp @@ -490,6 +490,8 @@ int main(int argc, char ** argv) { GKeyFile *keyfile; + int now; + #ifdef DISPLAY_FPS u32 fps_timing = 0; u32 fps_frame_counter = 0; @@ -730,11 +732,11 @@ int main(int argc, char ** argv) { } #ifdef DISPLAY_FPS - int now = SDL_GetTicks(); + now = SDL_GetTicks(); #endif if ( !my_config.disable_limiter && !ctrls_cfg.boost) { #ifndef DISPLAY_FPS - int now = SDL_GetTicks(); + now = SDL_GetTicks(); #endif int delay = (limiter_tick0 + limiter_frame_counter*1000/FPS_LIMITER_FPS) - now; if (delay > 0) {