aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMartin Kiewitz2010-07-20 19:42:48 +0000
committerMartin Kiewitz2010-07-20 19:42:48 +0000
commitc2577da7e0ef92a5a8586a83ffa710863a2a4f3f (patch)
treef7257a424cb21ef8aaa8e7dddb2037394f7113ea /engines/sci
parent102b8c9efd4bad7330428c705fb574285bb6a0d3 (diff)
downloadscummvm-rg350-c2577da7e0ef92a5a8586a83ffa710863a2a4f3f.tar.gz
scummvm-rg350-c2577da7e0ef92a5a8586a83ffa710863a2a4f3f.tar.bz2
scummvm-rg350-c2577da7e0ef92a5a8586a83ffa710863a2a4f3f.zip
SCI: fixed jones/ega/vga port issue
getPortById() error was caused by us remembering port when going interactive, restoring it and restoring it all the time afterwards as well svn-id: r51071
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/graphics/menu.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/graphics/menu.cpp b/engines/sci/graphics/menu.cpp
index bfe58e03d5..44d4e6968f 100644
--- a/engines/sci/graphics/menu.cpp
+++ b/engines/sci/graphics/menu.cpp
@@ -467,8 +467,10 @@ reg_t GfxMenu::kernelSelect(reg_t eventObject, bool pauseSound) {
_paint16->bitsShow(_ports->_menuRect);
_barSaveHandle = NULL_REG;
}
- if (_oldPort)
+ if (_oldPort) {
_ports->setPort(_oldPort);
+ _oldPort = NULL;
+ }
if ((itemEntry) || (forceClaimed))
writeSelector(_segMan, eventObject, SELECTOR(claimed), make_reg(0, 1));