diff options
-rw-r--r-- | engines/sci/graphics/screen.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/graphics/screen.cpp b/engines/sci/graphics/screen.cpp index a86f64c44f..f991f4b8a8 100644 --- a/engines/sci/graphics/screen.cpp +++ b/engines/sci/graphics/screen.cpp @@ -594,9 +594,9 @@ void GfxScreen::debugShowMap(int mapNo) { } void GfxScreen::scale2x(const byte *src, byte *dst, int16 srcWidth, int16 srcHeight) { - const int newWidth = srcWidth * 2; - const byte *srcPtr = src; - + int newWidth = srcWidth * 2;
+ const byte *srcPtr = src;
+
for (int y = 0; y < srcHeight; y++) { for (int x = 0; x < srcWidth; x++) { const byte color = *srcPtr++; @@ -606,7 +606,7 @@ void GfxScreen::scale2x(const byte *src, byte *dst, int16 srcWidth, int16 srcHei dst[newWidth + 1] = color; dst += 2; } - dst += srcWidth; + dst += newWidth; } } |