diff options
author | Paul Gilbert | 2013-06-17 22:41:58 -0400 |
---|---|---|
committer | Paul Gilbert | 2013-06-17 22:41:58 -0400 |
commit | ef902493c4ba9f63a184ba25dbd8f608deabfcd5 (patch) | |
tree | 5ee0ab88e4c7ca69ef3d3b5015e6559dd3b25663 /engines/voyeur/voyeur.cpp | |
parent | 90d916d26ab39a80ad211811e9cd0a32d12dbaac (diff) | |
download | scummvm-rg350-ef902493c4ba9f63a184ba25dbd8f608deabfcd5.tar.gz scummvm-rg350-ef902493c4ba9f63a184ba25dbd8f608deabfcd5.tar.bz2 scummvm-rg350-ef902493c4ba9f63a184ba25dbd8f608deabfcd5.zip |
VOYEUR: Some cleanup and enum-ifying graphic drawing code
Diffstat (limited to 'engines/voyeur/voyeur.cpp')
-rw-r--r-- | engines/voyeur/voyeur.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/voyeur/voyeur.cpp b/engines/voyeur/voyeur.cpp index 3dec56fe6c..a8a072ef86 100644 --- a/engines/voyeur/voyeur.cpp +++ b/engines/voyeur/voyeur.cpp @@ -164,7 +164,7 @@ void VoyeurEngine::doHeadTitle() { void VoyeurEngine::showConversionScreen() { _graphicsManager._backgroundPage = _bVoy->boltEntry(0x502)._picResource; (*_graphicsManager._vPort)->setupViewPort(); - (*_graphicsManager._vPort)->_flags |= 8; + (*_graphicsManager._vPort)->_flags |= DISPFLAG_8; _graphicsManager.flipPage(); _eventsManager.sWaitFlip(); @@ -187,7 +187,7 @@ void VoyeurEngine::showConversionScreen() { if (shouldQuit()) return; - (*_graphicsManager._vPort)->_flags |= 8; + (*_graphicsManager._vPort)->_flags |= DISPFLAG_8; _graphicsManager.flipPage(); _eventsManager.sWaitFlip(); @@ -231,7 +231,7 @@ bool VoyeurEngine::doLock() { (*_graphicsManager._vPort)->setupViewPort(); _graphicsManager._backColors->startFade(); - (*_graphicsManager._vPort)->_flags |= 8; + (*_graphicsManager._vPort)->_parent->_flags |= DISPFLAG_8; _graphicsManager.flipPage(); _eventsManager.sWaitFlip(); @@ -257,7 +257,7 @@ bool VoyeurEngine::doLock() { bool breakFlag = false; while (!breakFlag && !shouldQuit()) { (*_graphicsManager._vPort)->setupViewPort(); - (*_graphicsManager._vPort)->_flags |= 8; + (*_graphicsManager._vPort)->_parent->_flags |= DISPFLAG_8; _graphicsManager.flipPage(); _eventsManager.sWaitFlip(); @@ -268,7 +268,7 @@ bool VoyeurEngine::doLock() { _graphicsManager._fontPtr->_justifyHeight = 97; (*_graphicsManager._vPort)->drawText(playString); - (*_graphicsManager._vPort)->_flags |= 8; + (*_graphicsManager._vPort)->_parent->_flags |= DISPFLAG_8; _graphicsManager.flipPage(); _eventsManager.sWaitFlip(); @@ -296,7 +296,7 @@ bool VoyeurEngine::doLock() { // TODO: Check is the mouse cursor being manually drawn here? I so, refactor _graphicsManager.sDrawPic(srcPic, *_graphicsManager._vPort, mousePos); - (*_graphicsManager._vPort)->_flags |= 8; + (*_graphicsManager._vPort)->_parent->_flags |= DISPFLAG_8; _graphicsManager.flipPage(); _eventsManager.sWaitFlip(); @@ -354,7 +354,7 @@ bool VoyeurEngine::doLock() { } _graphicsManager.fillPic(*_graphicsManager._vPort); - (*_graphicsManager._vPort)->_flags |= 8; + (*_graphicsManager._vPort)->_parent->_flags |= DISPFLAG_8; _graphicsManager.flipPage(); _eventsManager.sWaitFlip(); _graphicsManager.resetPalette(); |