diff options
Diffstat (limited to 'engines/mohawk/myst_areas.cpp')
-rw-r--r-- | engines/mohawk/myst_areas.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/mohawk/myst_areas.cpp b/engines/mohawk/myst_areas.cpp index 8198e3279c..2b591d8438 100644 --- a/engines/mohawk/myst_areas.cpp +++ b/engines/mohawk/myst_areas.cpp @@ -211,6 +211,9 @@ VideoHandle MystResourceType6::playMovie() { } else { handle = _vm->_video->playMovie(_videoFile, _left, _top, _loop); } + } else { + // Resume the video + _vm->_video->pauseMovie(handle, false); } return handle; @@ -226,6 +229,12 @@ bool MystResourceType6::isPlaying() { return handle != NULL_VID_HANDLE && !_vm->_video->endOfVideo(handle); } +void MystResourceType6::pauseMovie(bool pause) { + VideoHandle handle = _vm->_video->findVideoHandle(_videoFile); + if (handle != NULL_VID_HANDLE && !_vm->_video->endOfVideo(handle)) + _vm->_video->pauseMovie(handle, pause); +} + MystResourceType7::MystResourceType7(MohawkEngine_Myst *vm, Common::SeekableReadStream *rlstStream, MystResource *parent) : MystResource(vm, rlstStream, parent) { _var7 = rlstStream->readUint16LE(); _numSubResources = rlstStream->readUint16LE(); |