aboutsummaryrefslogtreecommitdiff
path: root/gui/editgamedialog.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2018-01-06 14:40:02 +0100
committerBastien Bouclet2018-01-27 18:12:34 +0100
commit0496ede62f8b86e1885d594e3aa5320c96b708eb (patch)
tree6a4453606061a15a5ee3462d1680936c257ae7f5 /gui/editgamedialog.cpp
parent3b50b57f544cb7c719a5f02f061853e10885ae6c (diff)
downloadscummvm-rg350-0496ede62f8b86e1885d594e3aa5320c96b708eb.tar.gz
scummvm-rg350-0496ede62f8b86e1885d594e3aa5320c96b708eb.tar.bz2
scummvm-rg350-0496ede62f8b86e1885d594e3aa5320c96b708eb.zip
GUI: Implement dirty-checking for widget redraws
Diffstat (limited to 'gui/editgamedialog.cpp')
-rw-r--r--gui/editgamedialog.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/gui/editgamedialog.cpp b/gui/editgamedialog.cpp
index 348ba5cb91..b99b53c686 100644
--- a/gui/editgamedialog.cpp
+++ b/gui/editgamedialog.cpp
@@ -424,26 +424,26 @@ void EditGameDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat
switch (cmd) {
case kCmdGlobalGraphicsOverride:
setGraphicSettingsState(data != 0);
- draw();
+ markAsDirty();
break;
case kCmdGlobalAudioOverride:
setAudioSettingsState(data != 0);
setSubtitleSettingsState(data != 0);
if (_globalVolumeOverride == NULL)
setVolumeSettingsState(data != 0);
- draw();
+ markAsDirty();
break;
case kCmdGlobalMIDIOverride:
setMIDISettingsState(data != 0);
- draw();
+ markAsDirty();
break;
case kCmdGlobalMT32Override:
setMT32SettingsState(data != 0);
- draw();
+ markAsDirty();
break;
case kCmdGlobalVolumeOverride:
setVolumeSettingsState(data != 0);
- draw();
+ markAsDirty();
break;
case kCmdChooseSoundFontCmd:
{
@@ -459,7 +459,7 @@ void EditGameDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat
else
_soundFontClearButton->setEnabled(false);
- draw();
+ markAsDirty();
}
break;
}
@@ -477,9 +477,9 @@ void EditGameDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat
// FSList files = dir.listDir(FSNode::kListFilesOnly);
_gamePathWidget->setLabel(dir.getPath());
- draw();
+ markAsDirty();
}
- draw();
+ markAsDirty();
break;
}
@@ -491,9 +491,9 @@ void EditGameDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat
// User made his choice...
Common::FSNode dir(browser.getResult());
_extraPathWidget->setLabel(dir.getPath());
- draw();
+ markAsDirty();
}
- draw();
+ markAsDirty();
break;
}
// Change path for stored save game (perm and temp) data
@@ -508,9 +508,9 @@ void EditGameDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 dat
MessageDialog warningMessage(_("Saved games sync feature doesn't work with non-default directories. If you want your saved games to sync, use default directory."));
warningMessage.runModal();
#endif
- draw();
+ markAsDirty();
}
- draw();
+ markAsDirty();
break;
}