SCI: fix regression of r50424, 2x scaling

svn-id: r50433
This commit is contained in:
Martin Kiewitz 2010-06-28 12:04:35 +00:00
parent 6063a9cba3
commit 6981b943b5

View file

@ -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;
}
}