diff options
author | Filippos Karapetis | 2016-10-03 01:44:46 +0300 |
---|---|---|
committer | Filippos Karapetis | 2016-10-03 01:44:46 +0300 |
commit | 9e5b745a123f0cc9b696eed6946edc31ef702dd8 (patch) | |
tree | f72d74e9138900ec67aa958d014a4f1f9456cd93 /engines/chewy/video | |
parent | f61aee3c70a97152550814d2035189fad192b2d4 (diff) | |
download | scummvm-rg350-9e5b745a123f0cc9b696eed6946edc31ef702dd8.tar.gz scummvm-rg350-9e5b745a123f0cc9b696eed6946edc31ef702dd8.tar.bz2 scummvm-rg350-9e5b745a123f0cc9b696eed6946edc31ef702dd8.zip |
CHEWY: Process events while waiting for video music to end
Diffstat (limited to 'engines/chewy/video')
-rw-r--r-- | engines/chewy/video/cfo_decoder.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/chewy/video/cfo_decoder.cpp b/engines/chewy/video/cfo_decoder.cpp index 9cd04793d1..18fc6ea375 100644 --- a/engines/chewy/video/cfo_decoder.cpp +++ b/engines/chewy/video/cfo_decoder.cpp @@ -23,6 +23,7 @@ #include "audio/audiostream.h" #include "audio/mixer.h" #include "audio/decoders/raw.h" +#include "common/events.h" #include "common/stream.h" #include "common/system.h" #include "engines/engine.h" @@ -228,6 +229,9 @@ void CfoDecoder::CfoVideoTrack::handleCustomFrame() { break; case kChunkWaitMusicEnd: do { + Common::Event event; + while (g_system->getEventManager()->pollEvent(event)) {} // ignore events + g_system->updateScreen(); g_system->delayMillis(10); } while (_mixer->isSoundHandleActive(_musicHandle)); break; |