aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorBastien Bouclet2018-01-06 16:13:29 +0100
committerBastien Bouclet2018-01-27 18:12:34 +0100
commit5878c618c931f6c600dda0b156d96f909013779b (patch)
tree1345c8957c22e654508405d3ed764dd71506844b /engines
parentfc37918130d8539ee57be014108729e8aca6e3f8 (diff)
downloadscummvm-rg350-5878c618c931f6c600dda0b156d96f909013779b.tar.gz
scummvm-rg350-5878c618c931f6c600dda0b156d96f909013779b.tar.bz2
scummvm-rg350-5878c618c931f6c600dda0b156d96f909013779b.zip
GUI: Remove Dialog::markAsDirty to expose full GUI redraws
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/dialogs.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/scumm/dialogs.cpp b/engines/scumm/dialogs.cpp
index 8acb6eb6de..1af752326a 100644
--- a/engines/scumm/dialogs.cpp
+++ b/engines/scumm/dialogs.cpp
@@ -358,7 +358,7 @@ void HelpDialog::handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 da
_prevButton->setFlags(WIDGET_ENABLED);
}
displayKeyBindings();
- draw();
+ g_gui.scheduleTopDialogRedraw();
break;
case kPrevCmd:
_page--;
@@ -369,7 +369,7 @@ void HelpDialog::handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 da
_prevButton->clearFlags(WIDGET_ENABLED);
}
displayKeyBindings();
- draw();
+ g_gui.scheduleTopDialogRedraw();
break;
default:
ScummDialog::handleCommand(sender, cmd, data);
@@ -553,7 +553,7 @@ void ValueDisplayDialog::handleKeyDown(Common::KeyState state) {
setResult(_value);
_timer = g_system->getMillis() + kDisplayDelay;
- draw();
+ g_gui.scheduleTopDialogRedraw();
} else {
close();
}
@@ -581,7 +581,7 @@ void SubtitleSettingsDialog::handleKeyDown(Common::KeyState state) {
cycleValue();
reflowLayout();
- draw();
+ g_gui.scheduleTopDialogRedraw();
} else {
close();
}
@@ -634,7 +634,7 @@ void DebugInputDialog::handleKeyDown(Common::KeyState state) {
buffer.deleteLastChar();
Common::String total = mainText + ' ' + buffer;
setInfoText(total);
- draw();
+ g_gui.scheduleTopDialogRedraw();
reflowLayout();
} else if (state.keycode == Common::KEYCODE_RETURN) {
done = 1;
@@ -643,7 +643,7 @@ void DebugInputDialog::handleKeyDown(Common::KeyState state) {
} else if ((state.ascii >= '0' && state.ascii <= '9') || (state.ascii >= 'A' && state.ascii <= 'Z') || (state.ascii >= 'a' && state.ascii <= 'z') || state.ascii == '.' || state.ascii == ' ') {
buffer += state.ascii;
Common::String total = mainText + ' ' + buffer;
- draw();
+ g_gui.scheduleTopDialogRedraw();
reflowLayout();
setInfoText(total);
}