SCI: calculate widths for menu after switching to menuport, i guess this was the reason why we sometimes had issues drawing parts of the menu (random issue)

svn-id: r50784
This commit is contained in:
Martin Kiewitz 2010-07-10 16:22:08 +00:00
parent e807983e8f
commit 28d07c7e0a

View File

@ -704,8 +704,8 @@ GuiMenuItemEntry *GfxMenu::interactiveWithKeyboard() {
// selecting first item of first menu every time. Also sierra sci didn't
// allow mouse interaction, when menu was activated via keyboard.
calculateMenuAndItemWidth();
_oldPort = _ports->setPort(_ports->_menuPort);
calculateMenuAndItemWidth();
_barSaveHandle = _paint16->bitsSave(_ports->_menuRect, GFX_SCREEN_MASK_VISUAL);
_ports->penColor(0);
@ -827,8 +827,8 @@ GuiMenuItemEntry *GfxMenu::interactiveWithMouse() {
bool firstMenuChange = true;
GuiMenuItemEntry *curItemEntry = NULL;
calculateMenuAndItemWidth();
_oldPort = _ports->setPort(_ports->_menuPort);
calculateMenuAndItemWidth();
_barSaveHandle = _paint16->bitsSave(_ports->_menuRect, GFX_SCREEN_MASK_VISUAL);
_ports->penColor(0);