mirror of https://github.com/kivy/kivy.git
clock: the tick_draw _must_ be done even if the canvas doesn't need redraw.
This commit is contained in:
parent
f5b0396c00
commit
46aaf60b3b
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue