diff options
author | Bendegúz Nagy | 2016-08-12 12:45:44 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | 151b2d64d9c42880673c873a8215bbe20f087101 (patch) | |
tree | ab77061de1ea3de95962f2bf492122a135f42fd2 | |
parent | 3cb1c6d6efd96f184996400f97e9387e73bd4e67 (diff) | |
download | scummvm-rg350-151b2d64d9c42880673c873a8215bbe20f087101.tar.gz scummvm-rg350-151b2d64d9c42880673c873a8215bbe20f087101.tar.bz2 scummvm-rg350-151b2d64d9c42880673c873a8215bbe20f087101.zip |
DM: Adjust choose dialog responsiveness
-rw-r--r-- | engines/dm/dialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/dm/dialog.cpp b/engines/dm/dialog.cpp index 248003de66..943f8c58c6 100644 --- a/engines/dm/dialog.cpp +++ b/engines/dm/dialog.cpp @@ -175,7 +175,7 @@ int16 DialogMan::f424_dialogGetChoice(uint16 choiceCount, uint16 dialogSetIndex, L1299_ps_SecondaryMouseInputBackup = _vm->_eventMan->_g442_secondaryMouseInput; L1300_ps_PrimaryKeyboardInputBackup = _vm->_eventMan->_g443_primaryKeyboardInput; L1301_ps_SecondaryKeyboardInputBackup = _vm->_eventMan->_g444_secondaryKeyboardInput; - _vm->_eventMan->_g442_secondaryMouseInput = 0; + _vm->_eventMan->_g442_secondaryMouseInput = nullptr; _vm->_eventMan->_g443_primaryKeyboardInput = nullptr; _vm->_eventMan->_g444_secondaryKeyboardInput = nullptr; _vm->_eventMan->_g441_primaryMouseInput = g480_PrimaryMouseInput_DialogSets[dialogSetIndex][choiceCount - 1]; @@ -185,8 +185,8 @@ int16 DialogMan::f424_dialogGetChoice(uint16 choiceCount, uint16 dialogSetIndex, Common::Event key; Common::EventType eventType = _vm->_eventMan->processInput(&key); _vm->_eventMan->f380_processCommandQueue(); - _vm->_displayMan->updateScreen(); _vm->f22_delay(1); + _vm->_displayMan->updateScreen(); if ((_g335_selectedDialogChoice == 99) && (choiceCount == 1) && (eventType != Common::EVENT_INVALID) && key.kbd.keycode == Common::KEYCODE_RETURN) { /* If a choice has not been made yet with the mouse and the dialog has only one possible choice and carriage return was pressed on the keyboard */ |