From 3bf03039b86681673eba16e2c94ec0079ec54998 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Tue, 5 Jan 2010 20:49:03 +0000 Subject: [PATCH] SCI: removed hardcoded screen width/height from windowMgr menuPort svn-id: r47040 --- engines/sci/graphics/windowmgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/sci/graphics/windowmgr.cpp b/engines/sci/graphics/windowmgr.cpp index 6e599ae0a47..198649cf64a 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;