Implement background video support for Riven; some VideoManager/QTPlayer cleanup.

svn-id: r48056
This commit is contained in:
Matthew Hoops 2010-02-13 23:34:18 +00:00
parent 03e8276407
commit 1cd9498dbc
6 changed files with 128 additions and 111 deletions

View file

@ -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;