aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/graphics')
-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);
}
}
}