cli: put 'now' variable declaration were due
Note to self: this is C not python.
This commit is contained in:
parent
3713c1ba7f
commit
8422f0ab7c
|
@ -490,6 +490,8 @@ int main(int argc, char ** argv) {
|
||||||
|
|
||||||
GKeyFile *keyfile;
|
GKeyFile *keyfile;
|
||||||
|
|
||||||
|
int now;
|
||||||
|
|
||||||
#ifdef DISPLAY_FPS
|
#ifdef DISPLAY_FPS
|
||||||
u32 fps_timing = 0;
|
u32 fps_timing = 0;
|
||||||
u32 fps_frame_counter = 0;
|
u32 fps_frame_counter = 0;
|
||||||
|
@ -730,11 +732,11 @@ int main(int argc, char ** argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DISPLAY_FPS
|
#ifdef DISPLAY_FPS
|
||||||
int now = SDL_GetTicks();
|
now = SDL_GetTicks();
|
||||||
#endif
|
#endif
|
||||||
if ( !my_config.disable_limiter && !ctrls_cfg.boost) {
|
if ( !my_config.disable_limiter && !ctrls_cfg.boost) {
|
||||||
#ifndef DISPLAY_FPS
|
#ifndef DISPLAY_FPS
|
||||||
int now = SDL_GetTicks();
|
now = SDL_GetTicks();
|
||||||
#endif
|
#endif
|
||||||
int delay = (limiter_tick0 + limiter_frame_counter*1000/FPS_LIMITER_FPS) - now;
|
int delay = (limiter_tick0 + limiter_frame_counter*1000/FPS_LIMITER_FPS) - now;
|
||||||
if (delay > 0) {
|
if (delay > 0) {
|
||||||
|
|
Loading…
Reference in New Issue