mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-12 04:36:15 +00:00
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:
parent
e807983e8f
commit
28d07c7e0a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user