aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
diff options
context:
space:
mode:
authorMartin Kiewitz2010-08-01 16:43:49 +0000
committerMartin Kiewitz2010-08-01 16:43:49 +0000
commitadde79f1cbed9c0e4900ac305145ee22aae49d20 (patch)
tree6f56befdef10868f12d90423646b50eb0d784c59 /engines/sci/graphics
parent193d3212da5f5356cc531e2cbfe06e061caefdc7 (diff)
downloadscummvm-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/graphics')
-rw-r--r--engines/sci/graphics/view.cpp4
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);