diff options
author | Bastien Bouclet | 2018-01-06 14:40:02 +0100 |
---|---|---|
committer | Bastien Bouclet | 2018-01-27 18:12:34 +0100 |
commit | 0496ede62f8b86e1885d594e3aa5320c96b708eb (patch) | |
tree | 6a4453606061a15a5ee3462d1680936c257ae7f5 /gui/KeysDialog.cpp | |
parent | 3b50b57f544cb7c719a5f02f061853e10885ae6c (diff) | |
download | scummvm-rg350-0496ede62f8b86e1885d594e3aa5320c96b708eb.tar.gz scummvm-rg350-0496ede62f8b86e1885d594e3aa5320c96b708eb.tar.bz2 scummvm-rg350-0496ede62f8b86e1885d594e3aa5320c96b708eb.zip |
GUI: Implement dirty-checking for widget redraws
Diffstat (limited to 'gui/KeysDialog.cpp')
-rw-r--r-- | gui/KeysDialog.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gui/KeysDialog.cpp b/gui/KeysDialog.cpp index fcf9201877..68e9bd836d 100644 --- a/gui/KeysDialog.cpp +++ b/gui/KeysDialog.cpp @@ -82,7 +82,7 @@ void KeysDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) { selection = Common::String::format(_("Associated key : none")); _keyMapping->setLabel(selection); - _keyMapping->draw(); + _keyMapping->markAsDirty(); } break; case kMapCmd: @@ -105,11 +105,11 @@ void KeysDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) { _actionTitle->setLabel(_("Press the key to associate")); _keyMapping->setLabel(selection); - _keyMapping->draw(); + _keyMapping->markAsDirty(); Actions::Instance()->beginMapping(true); _actionsList->setEnabled(false); } - _actionTitle->draw(); + _actionTitle->markAsDirty(); break; case kOKCmd: Actions::Instance()->saveMapping(); @@ -144,8 +144,8 @@ void KeysDialog::handleKeyUp(Common::KeyState state) { _actionTitle->setLabel(_("Choose an action to map")); _keyMapping->setLabel(selection); - _keyMapping->draw(); - _actionTitle->draw(); + _keyMapping->markAsDirty(); + _actionTitle->markAsDirty(); _actionSelected = -1; _actionsList->setEnabled(true); Actions::Instance()->beginMapping(false); |