Fix regression in scrolling rooms.
svn-id: r41624
This commit is contained in:
parent
68cb22d4a9
commit
b8a9823f4e
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue