mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-25 05:34:27 +00:00
SCI: support "+" and "-" for menu (fixes speed changes via those keys in all games)
svn-id: r47163
This commit is contained in:
parent
271956f2d7
commit
b5603ee822
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user