[Scummvm-cvs-logs] scummvm master -> 1d3a3a24fac86e184da2ef44deb1491d347f5f8d
bluegr
bluegr at gmail.com
Sat Dec 26 23:48:05 CET 2015
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
1d3a3a24fa LAB: Fix regression in the tab handling code
Commit: 1d3a3a24fac86e184da2ef44deb1491d347f5f8d
https://github.com/scummvm/scummvm/commit/1d3a3a24fac86e184da2ef44deb1491d347f5f8d
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2015-12-27T00:47:21+02:00
Commit Message:
LAB: Fix regression in the tab handling code
Changed paths:
engines/lab/engine.cpp
diff --git a/engines/lab/engine.cpp b/engines/lab/engine.cpp
index 4b39073..325d8f6 100644
--- a/engines/lab/engine.cpp
+++ b/engines/lab/engine.cpp
@@ -554,8 +554,7 @@ bool LabEngine::processEvent(MessageClass tmpClass, uint16 code, uint16 qualifie
return false;
if (msgClass == kMessageRawKey && !_graphics->_longWinInFront) {
- if (!processKey(curMsg, msgClass, qualifier, curPos, curInv, forceDraw, code))
- return false;
+ return processKey(curMsg, msgClass, qualifier, curPos, curInv, forceDraw, code);
} else if ((msgClass == kMessageRawKey || leftButtonClick || rightButtonClick) && _graphics->_longWinInFront) {
_graphics->_longWinInFront = false;
_graphics->drawPanel();
@@ -599,14 +598,6 @@ bool LabEngine::processEvent(MessageClass tmpClass, uint16 code, uint16 qualifie
mayShowCrumbIndicator();
_graphics->screenUpdate();
- } else if (code == Common::KEYCODE_TAB) {
- const CloseData *tmpClosePtr = _closeDataPtr;
-
- // get next close-up in list after the one pointed to by curPos
- setCurrentClose(curPos, &tmpClosePtr, true, true);
-
- if (tmpClosePtr != _closeDataPtr)
- _event->setMousePos(Common::Point(_utils->scaleX((tmpClosePtr->_x1 + tmpClosePtr->_x2) / 2), _utils->scaleY((tmpClosePtr->_y1 + tmpClosePtr->_y2) / 2)));
}
return true;
@@ -681,8 +672,17 @@ bool LabEngine::processKey(IntuiMessage *curMsg, uint32 msgClass, uint16 &qualif
forceDraw = true;
interfaceOn();
- } else if (code == Common::KEYCODE_ESCAPE)
+ } else if (code == Common::KEYCODE_ESCAPE) {
_closeDataPtr = nullptr;
+ } else if (code == Common::KEYCODE_TAB) {
+ const CloseData *tmpClosePtr = _closeDataPtr;
+
+ // get next close-up in list after the one pointed to by curPos
+ setCurrentClose(curPos, &tmpClosePtr, true, true);
+
+ if (tmpClosePtr != _closeDataPtr)
+ _event->setMousePos(Common::Point(_utils->scaleX((tmpClosePtr->_x1 + tmpClosePtr->_x2) / 2), _utils->scaleY((tmpClosePtr->_y1 + tmpClosePtr->_y2) / 2)));
+ }
eatMessages();
More information about the Scummvm-git-logs
mailing list