From e21224ff9a590144f2afee292ac342bc9769e2eb Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Tue, 20 Sep 2011 13:04:04 -0400 Subject: [PATCH] PEGASUS: Fix copyToCurrentPort() --- engines/pegasus/surface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/pegasus/surface.cpp b/engines/pegasus/surface.cpp index 32a8aa0df601..7da5cd1124db 100755 --- a/engines/pegasus/surface.cpp +++ b/engines/pegasus/surface.cpp @@ -156,8 +156,8 @@ void Surface::copyToCurrentPort(const Common::Rect &srcRect, const Common::Rect for (int y = 0; y < srcRect.height(); y++) { memcpy(dst, src, lineSize); - src += _surface->pitch - lineSize; - dst += screen->pitch - lineSize; + src += _surface->pitch; + dst += screen->pitch; } }