diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/voyeur/events.cpp | 4 | ||||
-rw-r--r-- | engines/voyeur/files.cpp | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/engines/voyeur/events.cpp b/engines/voyeur/events.cpp index cff394797b..686994722e 100644 --- a/engines/voyeur/events.cpp +++ b/engines/voyeur/events.cpp @@ -80,6 +80,9 @@ EventsManager::EventsManager(): _intPtr(_gameData), _newLeftClick = _newRightClick = false;; _videoDead = 0; + + _fadeFirstCol = _fadeLastCol = 0; + _fadeCount = 1; } void EventsManager::resetMouse() { @@ -373,7 +376,6 @@ void EventsManager::vDoFadeInt() { return; } - for (int i = _fadeFirstCol; i <= _fadeLastCol; ++i) { ViewPortPalEntry &palEntry = _vm->_graphicsManager._viewPortListPtr->_palette[i]; byte *vgaP = &_vm->_graphicsManager._VGAColors[palEntry._palIndex * 3]; diff --git a/engines/voyeur/files.cpp b/engines/voyeur/files.cpp index 8205857b9d..e5f525a403 100644 --- a/engines/voyeur/files.cpp +++ b/engines/voyeur/files.cpp @@ -173,7 +173,7 @@ void BoltFilesState::nextBlock() { /*------------------------------------------------------------------------*/ FilesManager::FilesManager() { - + _curLibPtr = nullptr; } bool FilesManager::openBoltLib(const Common::String &filename, BoltFile *&boltFile) { @@ -1158,6 +1158,7 @@ PictureResource::PictureResource(int flags, int select, int pick, int onOff, _maskData = maskData; _imgData = imgData; _planeSize = planeSize; + _freeImgData = DisposeAfterUse::NO; } PictureResource::~PictureResource() { |