diff pytouhou/ui/window.pyx @ 496:104c737ce8b3

Test target FPS for natural instead of non-zero.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 14 Oct 2013 12:20:39 +0200
parents 2276229282fd
children c622eaf64428
line wrap: on
line diff
--- a/pytouhou/ui/window.pyx
+++ b/pytouhou/ui/window.pyx
@@ -64,7 +64,7 @@ cdef class Clock:
         self._fps_frame += 1
 
         target_tick = self._ref_tick
-        if self._target_fps:
+        if self._target_fps > 0:
             target_tick += <unsigned long>(self._ref_frame * 1000 / self._target_fps)
 
         if current <= target_tick: