[Scummvm-cvs-logs] scummvm master -> eed0fe1a2d2f3ccb4918b1569be41c5f58245d91
Strangerke
Strangerke at scummvm.org
Tue Jan 12 12:07:38 CET 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
eed0fe1a2d VOYEUR: Fix bitwise comparison, make more use of DISPFLAG enum
Commit: eed0fe1a2d2f3ccb4918b1569be41c5f58245d91
https://github.com/scummvm/scummvm/commit/eed0fe1a2d2f3ccb4918b1569be41c5f58245d91
Author: Strangerke (strangerke at scummvm.org)
Date: 2016-01-12T12:01:01+01:00
Commit Message:
VOYEUR: Fix bitwise comparison, make more use of DISPFLAG enum
Changed paths:
engines/voyeur/graphics.cpp
diff --git a/engines/voyeur/graphics.cpp b/engines/voyeur/graphics.cpp
index 68a30e4..a20e9f6 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) {
More information about the Scummvm-git-logs
mailing list