Skip to content

Commit

Permalink
VOYEUR: Some cleanup related to the onOff and pick masks
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Mar 5, 2014
1 parent b53487f commit afb785e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions engines/voyeur/graphics.cpp
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion engines/voyeur/graphics.h
Expand Up @@ -91,7 +91,7 @@ class GraphicsManager {
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();
Expand Down
6 changes: 3 additions & 3 deletions engines/voyeur/voyeur.cpp
Expand Up @@ -364,7 +364,7 @@ bool VoyeurEngine::doLock() {
_soundManager->playVOCMap(wrongVoc, wrongVocSize);
}

_graphicsManager->fillPic(*_graphicsManager->_vPort);
_graphicsManager->fillPic(*_graphicsManager->_vPort, 0);
flipPageAndWait();
_graphicsManager->resetPalette();

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit afb785e

Please sign in to comment.