diff options
author | Strangerke | 2016-01-12 12:01:01 +0100 |
---|---|---|
committer | Strangerke | 2016-01-12 12:01:01 +0100 |
commit | eed0fe1a2d2f3ccb4918b1569be41c5f58245d91 (patch) | |
tree | b7d135a71f1c86f614ef69303de9b92232609b7d /engines/voyeur | |
parent | 56b273e0d2a900a3b64d02bf2e75057f956d8eff (diff) | |
download | scummvm-rg350-eed0fe1a2d2f3ccb4918b1569be41c5f58245d91.tar.gz scummvm-rg350-eed0fe1a2d2f3ccb4918b1569be41c5f58245d91.tar.bz2 scummvm-rg350-eed0fe1a2d2f3ccb4918b1569be41c5f58245d91.zip |
VOYEUR: Fix bitwise comparison, make more use of DISPFLAG enum
Diffstat (limited to 'engines/voyeur')
-rw-r--r-- | engines/voyeur/graphics.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/engines/voyeur/graphics.cpp b/engines/voyeur/graphics.cpp index 68a30e41f4..a20e9f6006 100644 --- a/engines/voyeur/graphics.cpp +++ b/engines/voyeur/graphics.cpp @@ -159,7 +159,7 @@ void GraphicsManager::sDrawPic(DisplayResource *srcDisplay, DisplayResource *des destFlags = destPic->_flags; byte *cursorData = NULL; - if (srcFlags & 1) { + if (srcFlags & DISPFLAG_1) { if (_clipPtr) { int xs = _clipPtr->left - destPic->_bounds.left; int ys = _clipPtr->top - destPic->_bounds.top; @@ -433,7 +433,7 @@ void GraphicsManager::sDrawPic(DisplayResource *srcDisplay, DisplayResource *des } } } else { - if (srcFlags & 0x100) { + if (srcFlags & DISPFLAG_100) { // Simple run-length encoded image srcP = srcImgData; @@ -885,13 +885,10 @@ void GraphicsManager::flipPage() { bool flipFlag = false; for (uint idx = 0; idx < viewPorts.size(); ++idx) { - if (viewPorts[idx]->_flags & DISPFLAG_20) { - if ((viewPorts[idx]->_flags & (DISPFLAG_8 || DISPFLAG_1)) - == (DISPFLAG_8 || DISPFLAG_1)) { - if (_planeSelect == idx) - sDisplayPic(viewPorts[idx]->_currentPic); - flipFlag = true; - } + if ((viewPorts[idx]->_flags & (DISPFLAG_20 | DISPFLAG_8 | DISPFLAG_1)) == (DISPFLAG_20 | DISPFLAG_8 | DISPFLAG_1)) { + if (_planeSelect == idx) + sDisplayPic(viewPorts[idx]->_currentPic); + flipFlag = true; } if (flipFlag) { |