diff options
author | D G Turner | 2012-07-28 07:31:41 +0100 |
---|---|---|
committer | D G Turner | 2012-07-28 07:31:41 +0100 |
commit | be4be025b97f0dc58f90dff749002400579e75e9 (patch) | |
tree | 95a5b6220cf6c4110e715b21f9b9ef5447640499 /engines/teenagent/surface.cpp | |
parent | 890b83e3d891eedb9b555b3f2e4828f7c81a80a7 (diff) | |
download | scummvm-rg350-be4be025b97f0dc58f90dff749002400579e75e9.tar.gz scummvm-rg350-be4be025b97f0dc58f90dff749002400579e75e9.tar.bz2 scummvm-rg350-be4be025b97f0dc58f90dff749002400579e75e9.zip |
TEENAGENT: Add constant values for screen width and height.
It is unlikely these will be changed, but the symbols make the code more
readable.
Diffstat (limited to 'engines/teenagent/surface.cpp')
-rw-r--r-- | engines/teenagent/surface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/teenagent/surface.cpp b/engines/teenagent/surface.cpp index fa67f28096..7cb1da30f5 100644 --- a/engines/teenagent/surface.cpp +++ b/engines/teenagent/surface.cpp @@ -46,8 +46,8 @@ void Surface::load(Common::SeekableReadStream &stream, Type type) { if (type != kTypeLan) { uint16 pos = stream.readUint16LE(); - x = pos % 320; - y = pos / 320; + x = pos % screenWidth; + y = pos / screenWidth; } debugC(0, kDebugSurface, "declared info: %ux%u (%04xx%04x) -> %u,%u", w_, h_, w_, h_, x, y); |