diff options
author | Paul Gilbert | 2013-12-30 08:05:45 +1100 |
---|---|---|
committer | Paul Gilbert | 2013-12-30 08:05:45 +1100 |
commit | c78e83d7848940db511f53a4ed5ccad56b498bec (patch) | |
tree | 946bf515f752b48bcc8654676ae3ede1d3aba446 /engines/voyeur | |
parent | c4197b4e30a321c36488494d66a3fb99e0002780 (diff) | |
download | scummvm-rg350-c78e83d7848940db511f53a4ed5ccad56b498bec.tar.gz scummvm-rg350-c78e83d7848940db511f53a4ed5ccad56b498bec.tar.bz2 scummvm-rg350-c78e83d7848940db511f53a4ed5ccad56b498bec.zip |
VOYEUR: Implemented remainder of playAVideoDuration
Diffstat (limited to 'engines/voyeur')
-rw-r--r-- | engines/voyeur/voyeur.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/engines/voyeur/voyeur.cpp b/engines/voyeur/voyeur.cpp index 62544ea3b3..edb7f4a8d5 100644 --- a/engines/voyeur/voyeur.cpp +++ b/engines/voyeur/voyeur.cpp @@ -546,9 +546,11 @@ void VoyeurEngine::playAVideoDuration(int videoId, int duration) { if (videoId == -1) return; + PictureResource *pic = NULL; if (videoId == 42) { _eventsManager._videoDead = 0; - dataP = _bVoy->memberAddr(0xE00); + pic = _bVoy->boltEntry(0xE00 + _eventsManager._videoDead)._picResource; + warning("%xh", pic); } ::Video::RL2Decoder decoder; @@ -583,14 +585,11 @@ void VoyeurEngine::playAVideoDuration(int videoId, int duration) { _voy._field478 &= ~0x10; if (_voy._field478 & 8) { - // TODO: Figure out resource type for the data resource - /* + assert(pic); byte *imgData = (*_graphicsManager._vPort)->_currentPic->_imgData; - (*_graphicsManager._vPort)->_currentPic->_imgData = dataP[12 and 14]; - imgData[12 and 14] = imgData; + (*_graphicsManager._vPort)->_currentPic->_imgData = pic->_imgData; + pic->_imgData = imgData; _voy._field478 &= ~8; - */ - warning("TODO: playAVideoDuration - %x", dataP); } } |