diff options
author | Dmitry Iskrich | 2016-05-28 15:27:33 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | 604fa102ff35f02b71506fa0b67283ed00139872 (patch) | |
tree | 75b93325e6467afbbbf3d361ebec717d16f68b2d /engines | |
parent | 5ffd839bf3c4eb996866148adb4a4fcbef6947db (diff) | |
download | scummvm-rg350-604fa102ff35f02b71506fa0b67283ed00139872.tar.gz scummvm-rg350-604fa102ff35f02b71506fa0b67283ed00139872.tar.bz2 scummvm-rg350-604fa102ff35f02b71506fa0b67283ed00139872.zip |
DIRECTOR: Fix frame playback
Diffstat (limited to 'engines')
-rw-r--r-- | engines/director/score.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp index aef9c86e78..1b75414791 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -192,14 +192,15 @@ Common::Rect Score::readRect(Common::SeekableReadStream &stream) { } void Score::play() { - initGraphics(800, 800, true); + initGraphics(800, 600, true); - _currentFrame = 1; + _currentFrame = 0; _stopPlay = false; - _nextFrameTime = g_system->getMillis() + (float)_currentFrameRate / 60 * 1000; + _nextFrameTime = 0; while (!_stopPlay) { display(); processEvents(); + g_system->updateScreen(); g_system->delayMillis(10); } } @@ -209,7 +210,6 @@ void Score::display() { return; _frames[_currentFrame]->display(); - g_system->updateScreen(); _currentFrame++; byte tempo = _frames[_currentFrame]->_tempo; if (tempo) { |