diff options
author | Matthew Hoops | 2010-02-13 23:34:18 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-02-13 23:34:18 +0000 |
commit | 1cd9498dbcf5ad9f8cbdffe76ef3fa31b5543310 (patch) | |
tree | 005d01112c3778153d3a12401f259e9bbb172815 /engines/mohawk/riven.cpp | |
parent | 03e8276407e1e701811eaf5bb67c9b384ecf42ba (diff) | |
download | scummvm-rg350-1cd9498dbcf5ad9f8cbdffe76ef3fa31b5543310.tar.gz scummvm-rg350-1cd9498dbcf5ad9f8cbdffe76ef3fa31b5543310.tar.bz2 scummvm-rg350-1cd9498dbcf5ad9f8cbdffe76ef3fa31b5543310.zip |
Implement background video support for Riven; some VideoManager/QTPlayer cleanup.
svn-id: r48056
Diffstat (limited to 'engines/mohawk/riven.cpp')
-rw-r--r-- | engines/mohawk/riven.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/mohawk/riven.cpp b/engines/mohawk/riven.cpp index 1a1b4fabba..cd1e71564c 100644 --- a/engines/mohawk/riven.cpp +++ b/engines/mohawk/riven.cpp @@ -105,6 +105,7 @@ Common::Error MohawkEngine_Riven::run() { Common::Event event; while (!_gameOver) { bool needsUpdate = _gfx->runScheduledWaterEffects(); + needsUpdate |= _video->updateBackgroundMovies(); while (_eventMan->pollEvent(event)) { switch (event.type) { @@ -215,6 +216,9 @@ void MohawkEngine_Riven::changeToStack(uint16 n) { _curStack = n; + // Stop any videos playing + _video->stopVideos(); + // Clear the old stack files out for (uint32 i = 0; i < _mhk.size(); i++) delete _mhk[i]; @@ -293,6 +297,7 @@ void MohawkEngine_Riven::changeToCard(uint16 n) { _gfx->_updatesEnabled = true; _gfx->clearWaterEffects(); _gfx->_activatedPLSTs.clear(); + _video->stopVideos(); _video->_mlstRecords.clear(); _gfx->drawPLST(1); _activatedSLST = false; |