diff options
author | Martin Kiewitz | 2010-06-28 12:04:35 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-06-28 12:04:35 +0000 |
commit | 6981b943b51f4ae1348e06992e8f7333824d05c5 (patch) | |
tree | 4c161b39d79574b32d0746489676905b66bf6d21 | |
parent | 6063a9cba32443234be31d77e3a7a57870c88007 (diff) | |
download | scummvm-rg350-6981b943b51f4ae1348e06992e8f7333824d05c5.tar.gz scummvm-rg350-6981b943b51f4ae1348e06992e8f7333824d05c5.tar.bz2 scummvm-rg350-6981b943b51f4ae1348e06992e8f7333824d05c5.zip |
SCI: fix regression of r50424, 2x scaling
svn-id: r50433
-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; } } |