Fix pausing during video play back.

svn-id: r40098
This commit is contained in:
Travis Howell 2009-04-24 10:07:34 +00:00
parent 457acf5e42
commit d22aeae5fc
2 changed files with 5 additions and 3 deletions

View File

@ -983,13 +983,11 @@ void AGOSEngine::pauseEngineIntern(bool pauseIt) {
_midi.pause(true);
_mixer->pauseAll(true);
_sound->ambientPause(true);
} else {
_pause = false;
_midi.pause(_musicPaused);
_mixer->pauseAll(false);
_sound->ambientPause(_ambientPaused);
}
}
@ -998,8 +996,10 @@ void AGOSEngine::pause() {
while (_pause && !shouldQuit()) {
delay(1);
if (_keyPressed.keycode == Common::KEYCODE_PAUSE)
if (_keyPressed.keycode == Common::KEYCODE_PAUSE) {
pauseEngine(false);
_keyPressed.reset();
}
}
}

View File

@ -100,6 +100,8 @@ void MoviePlayer::handleNextFrame() {
while (eventMan->pollEvent(event)) {
switch (event.type) {
case Common::EVENT_KEYDOWN:
if (event.kbd.keycode == Common::KEYCODE_PAUSE)
_vm->pause();
if (event.kbd.ascii == 27) {
_leftButtonDown = true;
_rightButtonDown = true;