diff options
author | Willem Jan Palenstijn | 2015-12-27 00:28:41 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-27 00:29:05 +0100 |
commit | 428f9acdcf5eda6d852c664b81905dc7e31a3a57 (patch) | |
tree | b57fc319bf0033763646ff74185c632f8fd1ab5f | |
parent | 56c5919c3d9933e0fc369b294acad7089f48ac1e (diff) | |
download | scummvm-rg350-428f9acdcf5eda6d852c664b81905dc7e31a3a57.tar.gz scummvm-rg350-428f9acdcf5eda6d852c664b81905dc7e31a3a57.tar.bz2 scummvm-rg350-428f9acdcf5eda6d852c664b81905dc7e31a3a57.zip |
LAB: Revert functional change of cleanup commit
(7f2b69b75c8e352ea06c9571992a00d5ffe7308f)
-rw-r--r-- | engines/lab/engine.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/engines/lab/engine.cpp b/engines/lab/engine.cpp index 325d8f6272..59d5ff1070 100644 --- a/engines/lab/engine.cpp +++ b/engines/lab/engine.cpp @@ -555,11 +555,13 @@ bool LabEngine::processEvent(MessageClass tmpClass, uint16 code, uint16 qualifie if (msgClass == kMessageRawKey && !_graphics->_longWinInFront) { return processKey(curMsg, msgClass, qualifier, curPos, curInv, forceDraw, code); - } else if ((msgClass == kMessageRawKey || leftButtonClick || rightButtonClick) && _graphics->_longWinInFront) { - _graphics->_longWinInFront = false; - _graphics->drawPanel(); - drawRoomMessage(curInv, _closeDataPtr); - _graphics->screenUpdate(); + } else if (_graphics->_longWinInFront) { + if (msgClass == kMessageRawKey || leftButtonClick || rightButtonClick) { + _graphics->_longWinInFront = false; + _graphics->drawPanel(); + drawRoomMessage(curInv, _closeDataPtr); + _graphics->screenUpdate(); + } } else if (msgClass == kMessageButtonUp) { if (!_alternate) processMainButton(curInv, lastInv, oldDirection, forceDraw, buttonId, actionMode); |