[Scummvm-cvs-logs] scummvm master -> 8cd0d40cefa1cc9e377deb86f04103c143afdfae
Strangerke
Strangerke at scummvm.org
Fri Feb 21 19:41:49 CET 2014
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:
8cd0d40cef VOYEUR: reduce the scope of a variable
Commit: 8cd0d40cefa1cc9e377deb86f04103c143afdfae
https://github.com/scummvm/scummvm/commit/8cd0d40cefa1cc9e377deb86f04103c143afdfae
Author: Strangerke (strangerke at scummvm.org)
Date: 2014-02-21T10:40:10-08:00
Commit Message:
VOYEUR: reduce the scope of a variable
Changed paths:
engines/voyeur/graphics.cpp
diff --git a/engines/voyeur/graphics.cpp b/engines/voyeur/graphics.cpp
index 53404c9..00f945e 100644
--- a/engines/voyeur/graphics.cpp
+++ b/engines/voyeur/graphics.cpp
@@ -111,7 +111,6 @@ void GraphicsManager::addRectNoSaveBack(ViewPortResource *viewPort, int idx, con
void GraphicsManager::sDrawPic(DisplayResource *srcDisplay, DisplayResource *destDisplay,
const Common::Point &initialOffset) {
- int imageDataShift = 0;
int width1, width2;
int widthDiff, widthDiff2;
int height1;
@@ -247,6 +246,7 @@ void GraphicsManager::sDrawPic(DisplayResource *srcDisplay, DisplayResource *des
}
if (srcFlags & DISPFLAG_1000) {
+ int imageDataShift = 0;
srcImgData = srcPic->_imgData + (imageDataShift << 14);
for (uint idx = 0; idx < srcPic->_maskData; ++idx) {
if (imageDataShift < 4)
More information about the Scummvm-git-logs
mailing list