From f0f19dbea07be8593cdc50bcef671bf69a8bd731 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 27 Nov 2014 16:32:25 -0500 Subject: ACCESS: Fix for vertical scrolling after using inventory screen --- engines/access/asurface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/access/asurface.cpp b/engines/access/asurface.cpp index c9c335e894..624721920a 100644 --- a/engines/access/asurface.cpp +++ b/engines/access/asurface.cpp @@ -331,17 +331,17 @@ void ASurface::moveBufferLeft() { void ASurface::moveBufferRight() { byte *p = (byte *)getPixels(); - Common::copy_backward(p, p + (w * h) - TILE_WIDTH, p + (w * h)); + Common::copy_backward(p, p + (pitch * h) - TILE_WIDTH, p + (pitch * h)); } void ASurface::moveBufferUp() { byte *p = (byte *)getPixels(); - Common::copy(p + (w * TILE_HEIGHT), p + (w * h), p); + Common::copy(p + (pitch * TILE_HEIGHT), p + (pitch * h), p); } void ASurface::moveBufferDown() { byte *p = (byte *)getPixels(); - Common::copy_backward(p, p + (w * (h - TILE_HEIGHT)), p + (w * h)); + Common::copy_backward(p, p + (pitch * (h - TILE_HEIGHT)), p + (pitch * h)); } } // End of namespace Access -- cgit v1.2.3