diff --git a/src/lephisto.c b/src/lephisto.c index b788b61..4225a82 100644 --- a/src/lephisto.c +++ b/src/lephisto.c @@ -334,7 +334,7 @@ static void fps_control(void) { /* If the fps is limited.. */ if((max_fps != 0) && (cur_dt < 1./max_fps)) { delay = 1./max_fps - cur_dt; - SDL_Delay(delay); + SDL_Delay((unsigned int)(delay*1000)); fps_dt += delay; /* Make sure it displays the propper FPS. */ } }