aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur
diff options
context:
space:
mode:
authorStrangerke2014-03-05 07:59:39 +0100
committerStrangerke2014-03-05 07:59:39 +0100
commitafb785e5c1d753d7f16ce110475cfd73f1019290 (patch)
tree1ae62cfdd3f4697e488a65d942aaa14b4416ce0c /engines/voyeur
parentb53487fe388668e22a81f3de83755e76003c48f6 (diff)
downloadscummvm-rg350-afb785e5c1d753d7f16ce110475cfd73f1019290.tar.gz
scummvm-rg350-afb785e5c1d753d7f16ce110475cfd73f1019290.tar.bz2
scummvm-rg350-afb785e5c1d753d7f16ce110475cfd73f1019290.zip
VOYEUR: Some cleanup related to the onOff and pick masks
Diffstat (limited to 'engines/voyeur')
-rw-r--r--engines/voyeur/graphics.cpp4
-rw-r--r--engines/voyeur/graphics.h2
-rw-r--r--engines/voyeur/voyeur.cpp6
3 files changed, 6 insertions, 6 deletions
diff --git a/engines/voyeur/graphics.cpp b/engines/voyeur/graphics.cpp
index 761548fa87..ea34148007 100644
--- a/engines/voyeur/graphics.cpp
+++ b/engines/voyeur/graphics.cpp
@@ -548,8 +548,8 @@ void GraphicsManager::sDrawPic(DisplayResource *srcDisplay, DisplayResource *des
} else {
// loc_26673
- int pick = srcPic->_pick;
- int onOff = srcPic->_onOff;
+ byte pick = srcPic->_pick;
+ byte onOff = srcPic->_onOff;
if (!(srcFlags & PICFLAG_PIC_OFFSET)) {
srcP = srcImgData += srcOffset;
diff --git a/engines/voyeur/graphics.h b/engines/voyeur/graphics.h
index f736c8a7f9..e7421915c8 100644
--- a/engines/voyeur/graphics.h
+++ b/engines/voyeur/graphics.h
@@ -91,7 +91,7 @@ public:
void addRectNoSaveBack(ViewPortResource *viewPort, int idx, const Common::Rect &bounds);
void sDrawPic(DisplayResource *srcDisplay, DisplayResource *destDisplay, const Common::Point &initialOffset);
- void fillPic(DisplayResource *display, byte onOff = 0);
+ void fillPic(DisplayResource *display, byte onOff);
void sDisplayPic(PictureResource *pic);
void drawANumber(DisplayResource *display, int num, const Common::Point &pt);
void flipPage();
diff --git a/engines/voyeur/voyeur.cpp b/engines/voyeur/voyeur.cpp
index 6af57c6201..b4c9fbea65 100644
--- a/engines/voyeur/voyeur.cpp
+++ b/engines/voyeur/voyeur.cpp
@@ -364,7 +364,7 @@ bool VoyeurEngine::doLock() {
_soundManager->playVOCMap(wrongVoc, wrongVocSize);
}
- _graphicsManager->fillPic(*_graphicsManager->_vPort);
+ _graphicsManager->fillPic(*_graphicsManager->_vPort, 0);
flipPageAndWait();
_graphicsManager->resetPalette();
@@ -626,12 +626,12 @@ void VoyeurEngine::doTransitionCard(const Common::String &time, const Common::St
_eventsManager->_intPtr._hasPalette = true;
(*_graphicsManager->_vPort)->setupViewPort(NULL);
- (*_graphicsManager->_vPort)->fillPic(128);
+ (*_graphicsManager->_vPort)->fillPic(0x80);
_graphicsManager->flipPage();
_eventsManager->sWaitFlip();
flipPageAndWait();
- (*_graphicsManager->_vPort)->fillPic(128);
+ (*_graphicsManager->_vPort)->fillPic(0x80);
FontInfoResource &fi = *_graphicsManager->_fontPtr;
fi._curFont = _bVoy->boltEntry(257)._fontResource;