diff options
author | Nicolas Bacca | 2005-01-28 23:45:53 +0000 |
---|---|---|
committer | Nicolas Bacca | 2005-01-28 23:45:53 +0000 |
commit | bf55edd72a321c2419c697a60c4a3c6d6d7908f3 (patch) | |
tree | 32ea84eb20f53a06ab8a549828982c528cff9939 /backends/wince/CEKeysDialog.cpp | |
parent | 4b3dda61841aed720d3d104c727f7e96cd04f3c2 (diff) | |
download | scummvm-rg350-bf55edd72a321c2419c697a60c4a3c6d6d7908f3.tar.gz scummvm-rg350-bf55edd72a321c2419c697a60c4a3c6d6d7908f3.tar.bz2 scummvm-rg350-bf55edd72a321c2419c697a60c4a3c6d6d7908f3.zip |
Update to latest branch fixes
svn-id: r16683
Diffstat (limited to 'backends/wince/CEKeysDialog.cpp')
-rw-r--r-- | backends/wince/CEKeysDialog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/wince/CEKeysDialog.cpp b/backends/wince/CEKeysDialog.cpp index 946a06060f..a4575b4e02 100644 --- a/backends/wince/CEKeysDialog.cpp +++ b/backends/wince/CEKeysDialog.cpp @@ -56,7 +56,7 @@ CEKeysDialog::CEKeysDialog(const Common::String &title) // Get actions names Common::StringList l; - for (int i = 1; i < CEActions::Instance()->size(); i++) + for (int i = 0; i < CEActions::Instance()->size(); i++) l.push_back(CEActions::Instance()->actionName((ActionType)i)); _actionsList->setList(l); @@ -72,7 +72,7 @@ void CEKeysDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) if (_actionsList->getSelected() >= 0) { char selection[100]; - sprintf(selection, "Associated key : %s", CEDevice::getKeyName(CEActions::Instance()->getMapping((ActionType)(_actionsList->getSelected() + 1))).c_str()); + sprintf(selection, "Associated key : %s", CEDevice::getKeyName(CEActions::Instance()->getMapping((ActionType)(_actionsList->getSelected()))).c_str()); _keyMapping->setLabel(selection); _keyMapping->draw(); } @@ -84,7 +84,7 @@ void CEKeysDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) else { char selection[100]; - _actionSelected = _actionsList->getSelected() + 1; + _actionSelected = _actionsList->getSelected(); sprintf(selection, "Associated key : %s", CEDevice::getKeyName(CEActions::Instance()->getMapping((ActionType)_actionSelected)).c_str()); _actionTitle->setLabel("Press the key to associate"); _keyMapping->setLabel(selection); |