aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/map.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-07-31 10:26:17 +0530
committerEugene Sandulenko2019-09-03 17:17:30 +0200
commit0fb3ad7ba05983fe64cc5f64294d58fa394935d1 (patch)
tree0007f5d15ee58e4ebc328cace36185997942117e /engines/hdb/map.cpp
parent6e357d9d9749f399c5c1a347d4e8d6f7881ce081 (diff)
downloadscummvm-rg350-0fb3ad7ba05983fe64cc5f64294d58fa394935d1.tar.gz
scummvm-rg350-0fb3ad7ba05983fe64cc5f64294d58fa394935d1.tar.bz2
scummvm-rg350-0fb3ad7ba05983fe64cc5f64294d58fa394935d1.zip
HDB: Make Platform specific constants into variables
Diffstat (limited to 'engines/hdb/map.cpp')
-rw-r--r--engines/hdb/map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/hdb/map.cpp b/engines/hdb/map.cpp
index 8c2de33e54..2c9bbd5af0 100644
--- a/engines/hdb/map.cpp
+++ b/engines/hdb/map.cpp
@@ -1162,8 +1162,8 @@ void Map::centerMapXY(int x, int y) {
y = maxy;
}
- x -= (kScreenDrawWidth / 2);
- y -= (kScreenDrawHeight / 2);
+ x -= (g_hdb->_screenDrawWidth / 2);
+ y -= (g_hdb->_screenDrawHeight / 2);
setMapXY(x, y);
}