# HG changeset patch # User Emmanuel Gil Peyrot # Date 1381746039 -7200 # Node ID 104c737ce8b322fb85319cd8e400560427fb45e9 # Parent b32cef75df5912190bc8ff0d2433eda8e20a8af3 Test target FPS for natural instead of non-zero. diff --git a/pytouhou/ui/window.pyx b/pytouhou/ui/window.pyx --- 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 += (self._ref_frame * 1000 / self._target_fps) if current <= target_tick: