SCI: fix regression of r50424, 2x scaling
svn-id: r50433
This commit is contained in:
parent
6063a9cba3
commit
6981b943b5
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue