diff options
Diffstat (limited to 'scumm/dialogs.cpp')
-rw-r--r-- | scumm/dialogs.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/scumm/dialogs.cpp b/scumm/dialogs.cpp index 3effb415ff..75bfaeb6a7 100644 --- a/scumm/dialogs.cpp +++ b/scumm/dialogs.cpp @@ -608,9 +608,6 @@ ValueDisplayDialog::ValueDisplayDialog(const Common::String& label, int minVal, _x = (320 - width) / 2; _w = width; - setResult(_value); - - _timer = getMillis() + kDisplayDelay; } void ValueDisplayDialog::drawDialog() { @@ -646,11 +643,16 @@ void ValueDisplayDialog::handleKeyDown(uint16 ascii, int keycode, int modifiers) _timer = getMillis() + kDisplayDelay; draw(); } else { - setResult(_value); close(); } } +void ValueDisplayDialog::open() { + GUI::Dialog::open(); + setResult(_value); + _timer = getMillis() + kDisplayDelay; +} + } // End of namespace Scumm |