diff options
author | Travis Howell | 2009-06-04 01:05:47 +0000 |
---|---|---|
committer | Travis Howell | 2009-06-04 01:05:47 +0000 |
commit | 3a64d35dfd9126d7912c4d4496030f7ed120d660 (patch) | |
tree | d31b135a189e23fbebe806d77b9c5675ba2ed244 /engines/scumm/gfx.h | |
parent | 8447a3650e7de2fc780c1c354f70bf0d119622b3 (diff) | |
download | scummvm-rg350-3a64d35dfd9126d7912c4d4496030f7ed120d660.tar.gz scummvm-rg350-3a64d35dfd9126d7912c4d4496030f7ed120d660.tar.bz2 scummvm-rg350-3a64d35dfd9126d7912c4d4496030f7ed120d660.zip |
Add 16bit color support for later HE games.
svn-id: r41153
Diffstat (limited to 'engines/scumm/gfx.h')
-rw-r--r-- | engines/scumm/gfx.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/gfx.h b/engines/scumm/gfx.h index e4c1054450..88852c8388 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 + xstart + y * pitch + x; + return (byte *)pixels + y * pitch + (xstart * 2 + x) * bytesPerPixel; } byte *getBackPixels(int x, int y) const { - return (byte *)backBuf + xstart + y * pitch + x; + return (byte *)backBuf + y * pitch + (xstart * 2 + x) * bytesPerPixel; } }; |