diff options
author | Johannes Schickel | 2011-04-17 17:29:09 +0200 |
---|---|---|
committer | Johannes Schickel | 2011-04-17 20:58:07 +0200 |
commit | b0bd8fa7956ca78b65d2e5690b8dda2f842585c0 (patch) | |
tree | 7f9ca38366c5192000bd6e387e9a840323d7e1bf /engines/scumm/gfx.h | |
parent | ca240b4936b736b8042f9868c7dfca7b9de2d92f (diff) | |
download | scummvm-rg350-b0bd8fa7956ca78b65d2e5690b8dda2f842585c0.tar.gz scummvm-rg350-b0bd8fa7956ca78b65d2e5690b8dda2f842585c0.tar.bz2 scummvm-rg350-b0bd8fa7956ca78b65d2e5690b8dda2f842585c0.zip |
SCUMM: Prefer Surface::format over Surface::bytesPerPixel.
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 c6062ef9be..3f69d75efd 100644 --- a/engines/scumm/gfx.h +++ b/engines/scumm/gfx.h @@ -158,11 +158,11 @@ struct VirtScreen : Graphics::Surface { } byte *getPixels(int x, int y) const { - return (byte *)pixels + y * pitch + (xstart + x) * bytesPerPixel; + return (byte *)pixels + y * pitch + (xstart + x) * format.bytesPerPixel; } byte *getBackPixels(int x, int y) const { - return (byte *)backBuf + y * pitch + (xstart + x) * bytesPerPixel; + return (byte *)backBuf + y * pitch + (xstart + x) * format.bytesPerPixel; } }; |