diff options
author | Strangerke | 2014-02-09 11:44:56 +0100 |
---|---|---|
committer | Strangerke | 2014-02-09 11:44:56 +0100 |
commit | c97ce839fd5c4a169d0f9f8c5ab99abb17aef9f3 (patch) | |
tree | a3d524884bc2765fb01855ffffa518dc004a79d8 /engines/hopkins/graphics.cpp | |
parent | d7c86f3913938298b94b2b44267856006f8206d0 (diff) | |
download | scummvm-rg350-c97ce839fd5c4a169d0f9f8c5ab99abb17aef9f3.tar.gz scummvm-rg350-c97ce839fd5c4a169d0f9f8c5ab99abb17aef9f3.tar.bz2 scummvm-rg350-c97ce839fd5c4a169d0f9f8c5ab99abb17aef9f3.zip |
HOPKINS: Reduce the scope of some variables
Diffstat (limited to 'engines/hopkins/graphics.cpp')
-rw-r--r-- | engines/hopkins/graphics.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/hopkins/graphics.cpp b/engines/hopkins/graphics.cpp index a64e81fcc9..c47cf95152 100644 --- a/engines/hopkins/graphics.cpp +++ b/engines/hopkins/graphics.cpp @@ -439,9 +439,7 @@ void GraphicsManager::display8BitRect(const byte *surface, int xs, int ys, int w } void GraphicsManager::displayScaled8BitRect(const byte *surface, int xp, int yp, int width, int height, int destX, int destY) { - int xCtr; const byte *palette; - int savedXCount; byte *loopDestP; const byte *loopSrcP; int yCtr; @@ -454,10 +452,10 @@ void GraphicsManager::displayScaled8BitRect(const byte *surface, int xp, int yp, do { yCtr = yCount; - xCtr = xCount; + int xCtr = xCount; loopSrcP = srcP; loopDestP = destP; - savedXCount = xCount; + int savedXCount = xCount; palette = _palettePixels; do { |