From abb4b9d1e6cd1373a3d71c2fe97f3ca4d6df2454 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Thu, 27 Nov 2014 18:16:21 +0100 Subject: ACCESS: Fix regression in bd004bd6f3b960e36756248d8e44bfdf955fdb52 --- engines/access/asurface.cpp | 5 +++-- 1 file 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; } } -- cgit v1.2.3