diff options
author | Martin Kiewitz | 2010-07-10 16:22:08 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-07-10 16:22:08 +0000 |
commit | 28d07c7e0a8e2e84aa5bba45105dc4091476f4ee (patch) | |
tree | 2ad159987c675590392150ec966424a54c142bd6 /engines/sci/graphics | |
parent | e807983e8fd742334348f99fcdb72d351b18d2e6 (diff) | |
download | scummvm-rg350-28d07c7e0a8e2e84aa5bba45105dc4091476f4ee.tar.gz scummvm-rg350-28d07c7e0a8e2e84aa5bba45105dc4091476f4ee.tar.bz2 scummvm-rg350-28d07c7e0a8e2e84aa5bba45105dc4091476f4ee.zip |
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
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r-- | engines/sci/graphics/menu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/graphics/menu.cpp b/engines/sci/graphics/menu.cpp index f959ffb3a5..bfe58e03d5 100644 --- a/engines/sci/graphics/menu.cpp +++ b/engines/sci/graphics/menu.cpp @@ -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); |