From 0479964ad7bc6f59d10638427f3f68406dd0e05c Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Fri, 16 Oct 2009 21:21:47 +0000 Subject: SCI/newgui: WindowManager change so that WinMgrPort will get 0 and picWind will get 1 svn-id: r45175 --- engines/sci/gui/gui_windowmgr.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/engines/sci/gui/gui_windowmgr.cpp b/engines/sci/gui/gui_windowmgr.cpp index bb510b5775..2909a31845 100644 --- a/engines/sci/gui/gui_windowmgr.cpp +++ b/engines/sci/gui/gui_windowmgr.cpp @@ -47,10 +47,9 @@ enum { SciGuiWindowMgr::SciGuiWindowMgr(SciGuiScreen *screen, SciGuiGfx *gfx, SciGuiAnimate *animate) : _screen(screen), _gfx(gfx), _animate(animate) { - _wmgrPort = new GuiPort(1); - _windowsById.resize(2); - _windowsById[0] = 0; - _windowsById[1] = _wmgrPort; + _wmgrPort = new GuiPort(0); + _windowsById.resize(1); + _windowsById[0] = _wmgrPort; int16 offTop = 10; @@ -64,7 +63,7 @@ SciGuiWindowMgr::SciGuiWindowMgr(SciGuiScreen *screen, SciGuiGfx *gfx, SciGuiAni _wmgrPort->curLeft = 0; _windowList.push_front(_wmgrPort); - _picWind = NewWindow(Common::Rect(0, 10, _screen->_width, _screen->_height), 0, 0, SCI_WINDOWMGR_STYLE_TRANSPARENT | SCI_WINDOWMGR_STYLE_NOFRAME, 0, true); + _picWind = NewWindow(Common::Rect(0, offTop, _screen->_width, _screen->_height), 0, 0, SCI_WINDOWMGR_STYLE_TRANSPARENT | SCI_WINDOWMGR_STYLE_NOFRAME, 0, true); } SciGuiWindowMgr::~SciGuiWindowMgr() { -- cgit v1.2.3