SCI: support "+" and "-" for menu (fixes speed changes via those keys in all games)

svn-id: r47163
This commit is contained in:
Martin Kiewitz 2010-01-08 16:52:45 +00:00
parent 271956f2d7
commit b5603ee822

View File

@ -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) {