aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2010-08-05 07:54:33 +0000
committerMartin Kiewitz2010-08-05 07:54:33 +0000
commitc71f1f1612eb87e04f8fd55b7982d99594f93c43 (patch)
tree06fce4ee117448d3ee5226a4dc256a6454330543 /engines
parent1b6925765469de2e96bfa44f5b0c739309f982cf (diff)
downloadscummvm-rg350-c71f1f1612eb87e04f8fd55b7982d99594f93c43.tar.gz
scummvm-rg350-c71f1f1612eb87e04f8fd55b7982d99594f93c43.tar.bz2
scummvm-rg350-c71f1f1612eb87e04f8fd55b7982d99594f93c43.zip
SCI: actually enable hoyle 4 workaround
and adding additional comment svn-id: r51754
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/ports.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/graphics/ports.cpp b/engines/sci/graphics/ports.cpp
index 2e4eb85cb8..2e9128cda6 100644
--- a/engines/sci/graphics/ports.cpp
+++ b/engines/sci/graphics/ports.cpp
@@ -241,6 +241,8 @@ void GfxPorts::kernelDisposeWindow(uint16 windowId, bool reanimate) {
// 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 @@ void GfxPorts::kernelDisposeWindow(uint16 windowId, bool reanimate) {
// 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);
}
}
}