From bd3307402d9249ab8155546d7e7db6d381b56e85 Mon Sep 17 00:00:00 2001 From: Charles Yin Date: Fri, 10 Feb 2012 15:33:53 +1000 Subject: Track the animationRunning flag correctly in QQuickRenderThreadSingleContextWindowManager The animationRunning value in QQuickRenderThreadSingleContextWindowManager should always match the animation driver's running state. When the renderer starts rendering, should check and update the animationRunning to the current animation driver's isRunning() value after killing the animation timer. Change-Id: I30b55872ae1fc69b8db47ead7f1f2ee86de966c8 Reviewed-by: Andrew den Exter Reviewed-by: Gunnar Sletta --- src/quick/items/qquickwindowmanager.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/quick') diff --git a/src/quick/items/qquickwindowmanager.cpp b/src/quick/items/qquickwindowmanager.cpp index d54be90385..c28b77f63b 100644 --- a/src/quick/items/qquickwindowmanager.cpp +++ b/src/quick/items/qquickwindowmanager.cpp @@ -992,6 +992,7 @@ void QQuickRenderThreadSingleContextWindowManager::startRendering() inSync = false; lockInGui(); + animationRunning = animationDriver->isRunning(); start(); // Start the render thread... wait(); unlockInGui(); -- cgit v1.2.3