diff options
author | Charles Yin <charles.yin@nokia.com> | 2012-02-10 15:33:53 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-11 05:32:48 +0100 |
commit | bd3307402d9249ab8155546d7e7db6d381b56e85 (patch) | |
tree | 57c792a2ab00c5d0f2fdf25854211190ef3b8b2a | |
parent | ebb65bc084d44cfc96efb29abf0607616095f757 (diff) |
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 <andrew.den-exter@nokia.com>
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
-rw-r--r-- | src/quick/items/qquickwindowmanager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |