Mercurial > touhou
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 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 += <unsigned long>(self._ref_frame * 1000 / self._target_fps) if current <= target_tick:
