clock: the tick_draw _must_ be done even if the canvas doesn't need redraw.

This commit is contained in:
Mathieu Virbel 2013-05-12 14:06:08 +02:00
parent f5b0396c00
commit 46aaf60b3b
1 changed files with 3 additions and 1 deletions

View File

@ -299,9 +299,11 @@ class EventLoopBase(EventDispatcher):
# flush all the canvas operation
Builder.sync()
# tick before draw
Clock.tick_draw()
window = self.window
if window and window.canvas.needs_redraw:
Clock.tick_draw()
Builder.sync()
window.dispatch('on_draw')
window.dispatch('on_flip')