[Scummvm-cvs-logs] SF.net SVN: scummvm:[51754] scummvm/trunk/engines/sci/graphics/ports.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Thu Aug 5 09:54:33 CEST 2010


Revision: 51754
          http://scummvm.svn.sourceforge.net/scummvm/?rev=51754&view=rev
Author:   m_kiewitz
Date:     2010-08-05 07:54:33 +0000 (Thu, 05 Aug 2010)

Log Message:
-----------
SCI: actually enable hoyle 4 workaround

and adding additional comment

Modified Paths:
--------------
    scummvm/trunk/engines/sci/graphics/ports.cpp

Modified: scummvm/trunk/engines/sci/graphics/ports.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/ports.cpp	2010-08-05 07:49:19 UTC (rev 51753)
+++ scummvm/trunk/engines/sci/graphics/ports.cpp	2010-08-05 07:54:33 UTC (rev 51754)
@@ -241,6 +241,8 @@
 		//  invalid port.
 		//  We fix this by adjusting the port variable to be global
 		//  again when hoyle4 is disposing windows.
+		//  This worked because sierra sci leaves old port data, so the pointer
+		//  was still valid for a short period of time
 		// TODO: maybe this could get implemented as script patch somehow
 		//  although this could get quite tricky to implement (script 996)
 		//  IconBar::handleEvent (script 937)
@@ -250,7 +252,7 @@
 		//  actually remove the window
 		reg_t eventObject = _segMan->findObjectByName("uEvt");
 		if (!eventObject.isNull()) {
-			//writeSelectorValue(_segMan, eventObject, SELECTOR(port), 0);
+			writeSelectorValue(_segMan, eventObject, SELECTOR(port), 0);
 		}
 	}
 }


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