aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/gfx.h
diff options
context:
space:
mode:
authorJohannes Schickel2011-04-17 17:29:09 +0200
committerJohannes Schickel2011-04-17 20:58:07 +0200
commitb0bd8fa7956ca78b65d2e5690b8dda2f842585c0 (patch)
tree7f9ca38366c5192000bd6e387e9a840323d7e1bf /engines/scumm/gfx.h
parentca240b4936b736b8042f9868c7dfca7b9de2d92f (diff)
downloadscummvm-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.h4
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;
}
};