From c58e73ade24f848bbac9a66eee20c88809b1f215 Mon Sep 17 00:00:00 2001
From: Allanis <allanis@saracraft.net>
Date: Sat, 3 Aug 2013 15:00:26 +0100
Subject: [PATCH] [Fix] FPS limiting.

---
 src/lephisto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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. */
   }
 }