diff options
author | Nipun Garg | 2019-08-01 10:03:35 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:31 +0200 |
commit | b2fded7dca7ec07b8a8d58ce901948018d0adbcc (patch) | |
tree | 575e179c566364e222b2f5c9203bd296b529a390 /engines/hdb/map.cpp | |
parent | b51881c4468a72d5cfd41682c7daef7037c2a2a1 (diff) | |
download | scummvm-rg350-b2fded7dca7ec07b8a8d58ce901948018d0adbcc.tar.gz scummvm-rg350-b2fded7dca7ec07b8a8d58ce901948018d0adbcc.tar.bz2 scummvm-rg350-b2fded7dca7ec07b8a8d58ce901948018d0adbcc.zip |
HDB: Fix _screenDrawWidth and _screenDrawHeight
Diffstat (limited to 'engines/hdb/map.cpp')
-rw-r--r-- | engines/hdb/map.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/hdb/map.cpp b/engines/hdb/map.cpp index 9f008262c0..898a2c777d 100644 --- a/engines/hdb/map.cpp +++ b/engines/hdb/map.cpp @@ -1110,14 +1110,14 @@ void Map::getMapXY(int *x, int *y) { void Map::setMapXY(int x, int y) { if (x < 0) { x = 0; - } else if (x > (_width * kTileWidth - 480)) { - x = _width * kTileWidth - 480; + } else if (x > (_width * kTileWidth - g_hdb->_screenDrawWidth)) { + x = _width * kTileWidth - g_hdb->_screenDrawWidth; } if (y < 0) { y = 0; - } else if (y > (_height * kTileHeight - 480)) { - y = _height * kTileHeight - 480; + } else if (y > (_height * kTileHeight - g_hdb->_screenDrawHeight)) { + y = _height * kTileHeight - g_hdb->_screenDrawHeight; } _mapX = x; |