mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-01 16:35:20 +00:00
Fix regression in scrolling rooms.
svn-id: r41624
This commit is contained in:
parent
68cb22d4a9
commit
b8a9823f4e
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user