diff options
author | Martin Kiewitz | 2010-08-01 16:43:49 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-08-01 16:43:49 +0000 |
commit | adde79f1cbed9c0e4900ac305145ee22aae49d20 (patch) | |
tree | 6f56befdef10868f12d90423646b50eb0d784c59 /engines/sci | |
parent | 193d3212da5f5356cc531e2cbfe06e061caefdc7 (diff) | |
download | scummvm-rg350-adde79f1cbed9c0e4900ac305145ee22aae49d20.tar.gz scummvm-rg350-adde79f1cbed9c0e4900ac305145ee22aae49d20.tar.bz2 scummvm-rg350-adde79f1cbed9c0e4900ac305145ee22aae49d20.zip |
SCI: fixing regression of r51520
svn-id: r51580
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/graphics/view.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/graphics/view.cpp b/engines/sci/graphics/view.cpp index 38682770e4..271730015d 100644 --- a/engines/sci/graphics/view.cpp +++ b/engines/sci/graphics/view.cpp @@ -670,7 +670,7 @@ void GfxView::drawScaled(const Common::Rect &rect, const Common::Rect &clipRect, pixelNo--; scaledPixelNo++; for (; scaledPixelNo < scaledHeight; scaledPixelNo++) - scalingY[scaledPixelNo] = pixelNo - 1; + scalingY[scaledPixelNo] = pixelNo; // Create width scaling table pixelNo = 0; @@ -686,7 +686,7 @@ void GfxView::drawScaled(const Common::Rect &rect, const Common::Rect &clipRect, pixelNo--; scaledPixelNo++; for (; scaledPixelNo < scaledWidth; scaledPixelNo++) - scalingX[scaledPixelNo] = pixelNo - 1; + scalingX[scaledPixelNo] = pixelNo; scaledWidth = MIN(clipRect.width(), scaledWidth); scaledHeight = MIN(clipRect.height(), scaledHeight); |