From b8a9823f4e868a98ae85862eb457b6d4e7cffe1c Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Thu, 18 Jun 2009 06:10:13 +0000 Subject: Fix regression in scrolling rooms. svn-id: r41624 --- engines/scumm/gfx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/scumm') 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; } }; -- cgit v1.2.3