mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
Keep the Broken Sword cutscene players from using up all available CPU.
Probably a regression from the recent video decoder rewrite, but I haven't checked if it also present in other engines. svn-id: r49153
This commit is contained in:
parent
c874ff15a8
commit
8ed56e1834
@ -267,6 +267,8 @@ bool MoviePlayer::playVideo() {
|
||||
while (_vm->_system->getEventManager()->pollEvent(event))
|
||||
if ((event.type == Common::EVENT_KEYDOWN && event.kbd.keycode == Common::KEYCODE_ESCAPE) || event.type == Common::EVENT_LBUTTONUP)
|
||||
return false;
|
||||
|
||||
_vm->_system->delayMillis(10);
|
||||
}
|
||||
|
||||
return !_vm->shouldQuit();
|
||||
|
@ -293,6 +293,8 @@ bool MoviePlayer::playVideo() {
|
||||
while (_vm->_system->getEventManager()->pollEvent(event))
|
||||
if ((event.type == Common::EVENT_KEYDOWN && event.kbd.keycode == Common::KEYCODE_ESCAPE) || event.type == Common::EVENT_LBUTTONUP)
|
||||
return false;
|
||||
|
||||
_vm->_system->delayMillis(10);
|
||||
}
|
||||
|
||||
return !_vm->shouldQuit();
|
||||
|
Loading…
Reference in New Issue
Block a user