From 0496ede62f8b86e1885d594e3aa5320c96b708eb Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sat, 6 Jan 2018 14:40:02 +0100 Subject: GUI: Implement dirty-checking for widget redraws --- gui/KeysDialog.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gui/KeysDialog.cpp') 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); -- cgit v1.2.3