SCI: removed hardcoded screen width/height from windowMgr menuPort

svn-id: r47040
This commit is contained in:
Martin Kiewitz 2010-01-05 20:49:03 +00:00
parent d183fb3c81
commit 3bf03039b8

View File

@ -71,8 +71,8 @@ void WindowMgr::init(Common::String gameId) {
_gfx->OpenPort(_wmgrPort); _gfx->OpenPort(_wmgrPort);
_gfx->SetPort(_wmgrPort); _gfx->SetPort(_wmgrPort);
_gfx->SetOrigin(0, offTop); _gfx->SetOrigin(0, offTop);
_wmgrPort->rect.bottom = 200 - offTop; _wmgrPort->rect.bottom = _screen->_height - offTop;
_wmgrPort->rect.right = 320; _wmgrPort->rect.right = _screen->_width;
_wmgrPort->rect.moveTo(0, 0); _wmgrPort->rect.moveTo(0, 0);
_wmgrPort->curTop = 0; _wmgrPort->curTop = 0;
_wmgrPort->curLeft = 0; _wmgrPort->curLeft = 0;