comparison pytouhou/ui/window.pyx @ 491:2276229282fd

Fix gcc’s warnings with -Wall -Wextra.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 04 Oct 2013 14:32:28 +0200
parents 58b47e788c59
children 104c737ce8b3
comparison
equal deleted inserted replaced
490:1b532e7dd521 491:2276229282fd
63 self._ref_frame += 1 63 self._ref_frame += 1
64 self._fps_frame += 1 64 self._fps_frame += 1
65 65
66 target_tick = self._ref_tick 66 target_tick = self._ref_tick
67 if self._target_fps: 67 if self._target_fps:
68 target_tick += <long>(self._ref_frame * 1000 / self._target_fps) 68 target_tick += <unsigned long>(self._ref_frame * 1000 / self._target_fps)
69 69
70 if current <= target_tick: 70 if current <= target_tick:
71 sdl.delay(target_tick - current) 71 sdl.delay(target_tick - current)
72 else: 72 else:
73 self._ref_tick = current 73 self._ref_tick = current