VOYEUR: reduce the scope of a variable

This commit is contained in:
Strangerke 2014-02-21 19:40:10 +01:00
parent 3a6e4b381e
commit 8cd0d40cef

View File

@ -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)