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
This commit is contained in:
Martin Kiewitz 2010-07-20 19:42:48 +00:00
parent 102b8c9efd
commit c2577da7e0

View File

@ -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));