diff options
author | Martin Kiewitz | 2010-01-08 16:52:45 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-01-08 16:52:45 +0000 |
commit | b5603ee8227c0ea20cb3810748be8c65a3d5c4c7 (patch) | |
tree | 7b6004b881ea810674867184f2c5dd51101e224e /engines | |
parent | 271956f2d7bff53eadaf658c25c423939c8ded65 (diff) | |
download | scummvm-rg350-b5603ee8227c0ea20cb3810748be8c65a3d5c4c7.tar.gz scummvm-rg350-b5603ee8227c0ea20cb3810748be8c65a3d5c4c7.tar.bz2 scummvm-rg350-b5603ee8227c0ea20cb3810748be8c65a3d5c4c7.zip |
SCI: support "+" and "-" for menu (fixes speed changes via those keys in all games)
svn-id: r47163
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/graphics/menu.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sci/graphics/menu.cpp b/engines/sci/graphics/menu.cpp index 20252db133..bbb3765817 100644 --- a/engines/sci/graphics/menu.cpp +++ b/engines/sci/graphics/menu.cpp @@ -192,6 +192,11 @@ void Menu::add(Common::String title, Common::String content, reg_t contentVmPtr) if (tagPos && tagPos >= rightAlignedPos) tempPos = tagPos; itemEntry->textRightAligned = Common::String(content.c_str() + rightAlignedPos, tempPos - rightAlignedPos); + // - and + are used sometimes for volume control + if (itemEntry->textRightAligned == "-") + itemEntry->keyPress = '-'; + if (itemEntry->textRightAligned == "+") + itemEntry->keyPress = '+'; } if (tagPos) { |