GRAPHICS: MACGUI: Remove mouseDownWidget

The functionality I needed here can be implemented in the Director engine instead.
This commit is contained in:
Nathanael Gentry 2020-07-16 09:26:11 -04:00
parent 5877eae6f4
commit e23c264873
3 changed files with 1 additions and 8 deletions

View file

@ -551,7 +551,6 @@ bool MacWindow::processEvent(Common::Event &event) {
case Common::EVENT_LBUTTONUP:
_beingDragged = false;
_beingResized = false;
_wm->_mouseDownWidget = nullptr;
setHighlight(kBorderNone);
break;
@ -569,13 +568,10 @@ bool MacWindow::processEvent(Common::Event &event) {
return false;
}
MacWidget *w = _wm->_mouseDownWidget ? _wm->_mouseDownWidget : findEventHandler(event, _dims.left, _dims.top);
MacWidget *w = findEventHandler(event, _dims.left, _dims.top);
if (w && w != this) {
_wm->_hoveredWidget = w;
if (event.type == Common::EVENT_LBUTTONDOWN)
_wm->_mouseDownWidget = w;
if (w->processEvent(event))
return true;
}