aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur
diff options
context:
space:
mode:
authorStrangerke2014-02-21 19:40:10 +0100
committerStrangerke2014-02-21 19:40:10 +0100
commit8cd0d40cefa1cc9e377deb86f04103c143afdfae (patch)
treeb9d72de14e9425f74bc376a806c8681f988f64c7 /engines/voyeur
parent3a6e4b381ede711762694015cb5acdf415e4b30a (diff)
downloadscummvm-rg350-8cd0d40cefa1cc9e377deb86f04103c143afdfae.tar.gz
scummvm-rg350-8cd0d40cefa1cc9e377deb86f04103c143afdfae.tar.bz2
scummvm-rg350-8cd0d40cefa1cc9e377deb86f04103c143afdfae.zip
VOYEUR: reduce the scope of a variable
Diffstat (limited to 'engines/voyeur')
-rw-r--r--engines/voyeur/graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/voyeur/graphics.cpp b/engines/voyeur/graphics.cpp
index 53404c9ef8..00f945e174 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)