mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-01 08:23:15 +00:00
Fix pausing during video play back.
svn-id: r40098
This commit is contained in:
parent
457acf5e42
commit
d22aeae5fc
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user