# 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 -r b32cef75df59 -r 104c737ce8b3 pytouhou/ui/window.pyx --- a/pytouhou/ui/window.pyx Mon Oct 14 12:12:52 2013 +0200 +++ b/pytouhou/ui/window.pyx Mon Oct 14 12:20:39 2013 +0200 @@ -64,7 +64,7 @@ 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: