aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
diff options
context:
space:
mode:
authorFilippos Karapetis2009-01-03 16:24:27 +0000
committerFilippos Karapetis2009-01-03 16:24:27 +0000
commitefcfada33e3a7c7129a5c8d6a96cee9a815db8e8 (patch)
tree44d9c9f914463e3ee600230554fc0ae8c08fd938 /engines/agos
parentec631ba7f1cdeb8de4d247ac39cd4ccc4f24b078 (diff)
downloadscummvm-rg350-efcfada33e3a7c7129a5c8d6a96cee9a815db8e8.tar.gz
scummvm-rg350-efcfada33e3a7c7129a5c8d6a96cee9a815db8e8.tar.bz2
scummvm-rg350-efcfada33e3a7c7129a5c8d6a96cee9a815db8e8.zip
AGOS Smacker player: Wait for the *next* frame to be displayed, not the current one
svn-id: r35707
Diffstat (limited to 'engines/agos')
-rw-r--r--engines/agos/animation.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/agos/animation.cpp b/engines/agos/animation.cpp
index e3ed7016f9..65f145ea34 100644
--- a/engines/agos/animation.cpp
+++ b/engines/agos/animation.cpp
@@ -425,8 +425,7 @@ void MoviePlayerSMK::startSound() {
void MoviePlayerSMK::handleNextFrame() {
decodeNextFrame();
- if (processFrame())
- _vm->_system->updateScreen();
+ processFrame();
MoviePlayer::handleNextFrame();
}
@@ -472,6 +471,9 @@ bool MoviePlayerSMK::processFrame() {
return false;
}
+ _vm->_system->updateScreen();
+
+ // Wait before showing the next frame
_vm->_system->delayMillis(waitTime);
return true;
}