aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-16 21:21:47 +0000
committerMartin Kiewitz2009-10-16 21:21:47 +0000
commit0479964ad7bc6f59d10638427f3f68406dd0e05c (patch)
tree3771e5978a02557e0224c16433d8327349d4b0b5
parentf6716df853b70b3afa670d719da0f6bef947ea62 (diff)
downloadscummvm-rg350-0479964ad7bc6f59d10638427f3f68406dd0e05c.tar.gz
scummvm-rg350-0479964ad7bc6f59d10638427f3f68406dd0e05c.tar.bz2
scummvm-rg350-0479964ad7bc6f59d10638427f3f68406dd0e05c.zip
SCI/newgui: WindowManager change so that WinMgrPort will get 0 and picWind will get 1
svn-id: r45175
-rw-r--r--engines/sci/gui/gui_windowmgr.cpp9
1 files 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() {