diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/xeen/dialogs/dialogs.h | 5 | ||||
-rw-r--r-- | engines/xeen/dialogs/dialogs_input.cpp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/engines/xeen/dialogs/dialogs.h b/engines/xeen/dialogs/dialogs.h index 9038f75ef8..08c17e8881 100644 --- a/engines/xeen/dialogs/dialogs.h +++ b/engines/xeen/dialogs/dialogs.h @@ -102,6 +102,11 @@ public: * Draws the buttons onto the passed surface */ void drawButtons(XSurface *surface); + + /** + * Clears any currently set button value + */ + void clearEvents() { _buttonValue = 0; } }; class SettingsBaseDialog : public ButtonContainer { diff --git a/engines/xeen/dialogs/dialogs_input.cpp b/engines/xeen/dialogs/dialogs_input.cpp index 0ac8f3612b..c2dac524c0 100644 --- a/engines/xeen/dialogs/dialogs_input.cpp +++ b/engines/xeen/dialogs/dialogs_input.cpp @@ -69,6 +69,7 @@ int Input::getString(Common::String &line, uint maxLen, int maxWidth, bool isNum } } + _vm->_interface->clearEvents(); _vm->_noDirectionSense = false; return line.size(); } |