[Scummvm-cvs-logs] SF.net SVN: scummvm:[47163] scummvm/trunk/engines/sci/graphics/menu.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Fri Jan 8 17:52:45 CET 2010
Revision: 47163
http://scummvm.svn.sourceforge.net/scummvm/?rev=47163&view=rev
Author: m_kiewitz
Date: 2010-01-08 16:52:45 +0000 (Fri, 08 Jan 2010)
Log Message:
-----------
SCI: support "+" and "-" for menu (fixes speed changes via those keys in all games)
Modified Paths:
--------------
scummvm/trunk/engines/sci/graphics/menu.cpp
Modified: scummvm/trunk/engines/sci/graphics/menu.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/menu.cpp 2010-01-08 16:38:51 UTC (rev 47162)
+++ scummvm/trunk/engines/sci/graphics/menu.cpp 2010-01-08 16:52:45 UTC (rev 47163)
@@ -192,6 +192,11 @@
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) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list