diff options
author | Strangerke | 2014-11-27 18:16:21 +0100 |
---|---|---|
committer | Paul Gilbert | 2014-12-12 22:48:33 -0500 |
commit | abb4b9d1e6cd1373a3d71c2fe97f3ca4d6df2454 (patch) | |
tree | 85622e673bcd8e0a8afabdbd250d1addded83607 /engines | |
parent | 4c71b12e021d69550a7574579327002afda9d0e7 (diff) | |
download | scummvm-rg350-abb4b9d1e6cd1373a3d71c2fe97f3ca4d6df2454.tar.gz scummvm-rg350-abb4b9d1e6cd1373a3d71c2fe97f3ca4d6df2454.tar.bz2 scummvm-rg350-abb4b9d1e6cd1373a3d71c2fe97f3ca4d6df2454.zip |
ACCESS: Fix regression in bd004bd6f3b960e36756248d8e44bfdf955fdb52
Diffstat (limited to 'engines')
-rw-r--r-- | engines/access/asurface.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/access/asurface.cpp b/engines/access/asurface.cpp index e954e9efa6..c9c335e894 100644 --- a/engines/access/asurface.cpp +++ b/engines/access/asurface.cpp @@ -224,7 +224,7 @@ void ASurface::copyTo(ASurface *dest, const Common::Rect &bounds) { int scaleY = SCALE_LIMIT * bounds.height() / this->h; int scaleXCtr = 0, scaleYCtr = 0; - for (int yCtr = 0, destY = bounds.top; yCtr < this->h; ++yCtr, ++destY) { + for (int yCtr = 0, destY = bounds.top; yCtr < this->h; ++yCtr) { // Handle skipping lines if Y scaling scaleYCtr += scaleY; if (scaleYCtr < SCALE_LIMIT) @@ -250,7 +250,7 @@ void ASurface::copyTo(ASurface *dest, const Common::Rect &bounds) { continue; scaleXCtr -= SCALE_LIMIT; - // Only handle on-scren pixels + // Only handle on-screen pixels if (x >= dest->w) break; if (x >= 0 && *pSrc != 0) @@ -259,6 +259,7 @@ void ASurface::copyTo(ASurface *dest, const Common::Rect &bounds) { ++pDest; ++x; } + ++destY; } } |