aboutsummaryrefslogtreecommitdiff
path: root/engines/teenagent/surface.cpp
diff options
context:
space:
mode:
authorD G Turner2012-07-28 07:31:41 +0100
committerD G Turner2012-07-28 07:31:41 +0100
commitbe4be025b97f0dc58f90dff749002400579e75e9 (patch)
tree95a5b6220cf6c4110e715b21f9b9ef5447640499 /engines/teenagent/surface.cpp
parent890b83e3d891eedb9b555b3f2e4828f7c81a80a7 (diff)
downloadscummvm-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.cpp4
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);