Skip to content

Commit

Permalink
DIRECTOR: Fix frame playback
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Iskrich authored and sev- committed Aug 3, 2016
1 parent 5ffd839 commit 604fa10
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions engines/director/score.cpp
Expand Up @@ -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);
}
}
Expand All @@ -209,7 +210,6 @@ void Score::display() {
return;

_frames[_currentFrame]->display();
g_system->updateScreen();
_currentFrame++;
byte tempo = _frames[_currentFrame]->_tempo;
if (tempo) {
Expand Down

0 comments on commit 604fa10

Please sign in to comment.