From 8cd0d40cefa1cc9e377deb86f04103c143afdfae Mon Sep 17 00:00:00 2001 From: Strangerke Date: Fri, 21 Feb 2014 19:40:10 +0100 Subject: [PATCH] VOYEUR: reduce the scope of a variable --- engines/voyeur/graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/voyeur/graphics.cpp b/engines/voyeur/graphics.cpp index 53404c9ef80..00f945e1740 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)