aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2014-11-27 16:32:25 -0500
committerPaul Gilbert2014-12-12 22:48:47 -0500
commitf0f19dbea07be8593cdc50bcef671bf69a8bd731 (patch)
tree10a8846cb343c78975658af1e2270878bdff82fc /engines
parentabb4b9d1e6cd1373a3d71c2fe97f3ca4d6df2454 (diff)
downloadscummvm-rg350-f0f19dbea07be8593cdc50bcef671bf69a8bd731.tar.gz
scummvm-rg350-f0f19dbea07be8593cdc50bcef671bf69a8bd731.tar.bz2
scummvm-rg350-f0f19dbea07be8593cdc50bcef671bf69a8bd731.zip
ACCESS: Fix for vertical scrolling after using inventory screen
Diffstat (limited to 'engines')
-rw-r--r--engines/access/asurface.cpp6
1 files 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