aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2010-01-05 20:49:03 +0000
committerMartin Kiewitz2010-01-05 20:49:03 +0000
commit3bf03039b86681673eba16e2c94ec0079ec54998 (patch)
tree881373c1e76b789e9bcd4e19762e0f64e5123ed0 /engines
parentd183fb3c8107c5d990edf64a69486692040b0013 (diff)
downloadscummvm-rg350-3bf03039b86681673eba16e2c94ec0079ec54998.tar.gz
scummvm-rg350-3bf03039b86681673eba16e2c94ec0079ec54998.tar.bz2
scummvm-rg350-3bf03039b86681673eba16e2c94ec0079ec54998.zip
SCI: removed hardcoded screen width/height from windowMgr menuPort
svn-id: r47040
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/windowmgr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/graphics/windowmgr.cpp b/engines/sci/graphics/windowmgr.cpp
index 6e599ae0a4..198649cf64 100644
--- a/engines/sci/graphics/windowmgr.cpp
+++ b/engines/sci/graphics/windowmgr.cpp
@@ -71,8 +71,8 @@ void WindowMgr::init(Common::String gameId) {
_gfx->OpenPort(_wmgrPort);
_gfx->SetPort(_wmgrPort);
_gfx->SetOrigin(0, offTop);
- _wmgrPort->rect.bottom = 200 - offTop;
- _wmgrPort->rect.right = 320;
+ _wmgrPort->rect.bottom = _screen->_height - offTop;
+ _wmgrPort->rect.right = _screen->_width;
_wmgrPort->rect.moveTo(0, 0);
_wmgrPort->curTop = 0;
_wmgrPort->curLeft = 0;