changeset 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 b32cef75df59
children 3da7395f39e3
files pytouhou/ui/window.pyx
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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: