[Scummvm-cvs-logs] SF.net SVN: scummvm:[45175] scummvm/trunk/engines/sci/gui/gui_windowmgr.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Fri Oct 16 23:21:48 CEST 2009


Revision: 45175
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45175&view=rev
Author:   m_kiewitz
Date:     2009-10-16 21:21:47 +0000 (Fri, 16 Oct 2009)

Log Message:
-----------
SCI/newgui: WindowManager change so that WinMgrPort will get 0 and picWind will get 1

Modified Paths:
--------------
    scummvm/trunk/engines/sci/gui/gui_windowmgr.cpp

Modified: scummvm/trunk/engines/sci/gui/gui_windowmgr.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui_windowmgr.cpp	2009-10-16 19:35:55 UTC (rev 45174)
+++ scummvm/trunk/engines/sci/gui/gui_windowmgr.cpp	2009-10-16 21:21:47 UTC (rev 45175)
@@ -47,10 +47,9 @@
 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 @@
 	_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() {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list