aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorTravis Howell2009-06-18 06:10:13 +0000
committerTravis Howell2009-06-18 06:10:13 +0000
commitb8a9823f4e868a98ae85862eb457b6d4e7cffe1c (patch)
tree370eaa06794892f61aa74e9d870a2af40f5aae6d /engines/scumm
parent68cb22d4a95060bcba9b5a44508bc4ab57cb47ed (diff)
downloadscummvm-rg350-b8a9823f4e868a98ae85862eb457b6d4e7cffe1c.tar.gz
scummvm-rg350-b8a9823f4e868a98ae85862eb457b6d4e7cffe1c.tar.bz2
scummvm-rg350-b8a9823f4e868a98ae85862eb457b6d4e7cffe1c.zip
Fix regression in scrolling rooms.
svn-id: r41624
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/gfx.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/gfx.h b/engines/scumm/gfx.h
index c0f2c2c083..0910d9bc59 100644
--- a/engines/scumm/gfx.h
+++ b/engines/scumm/gfx.h
@@ -155,11 +155,11 @@ struct VirtScreen : Graphics::Surface {
}
byte *getPixels(int x, int y) const {
- return (byte *)pixels + y * pitch + (xstart * 2 + x) * bytesPerPixel;
+ return (byte *)pixels + y * pitch + (xstart + x) * bytesPerPixel;
}
byte *getBackPixels(int x, int y) const {
- return (byte *)backBuf + y * pitch + (xstart * 2 + x) * bytesPerPixel;
+ return (byte *)backBuf + y * pitch + (xstart + x) * bytesPerPixel;
}
};