GRAPHICS: MACGUI: amend the behaviour for list style button

This commit is contained in:
ysj1173886760 2021-07-28 15:50:49 +08:00
parent 9e9fa48101
commit b16b2c4b6b
2 changed files with 3 additions and 2 deletions

View file

@ -151,6 +151,7 @@ bool Movie::processEvent(Common::Event &event) {
spriteId = sc->getActiveSpriteIDFromPos(pos);
else
spriteId = sc->getMouseSpriteIDFromPos(pos);
_currentClickOnSpriteId = sc->getActiveSpriteIDFromPos(pos);
_currentHandlingChannelId = spriteId;

View file

@ -179,8 +179,8 @@ bool MacButton::processEvent(Common::Event &event) {
if (_wm->_mouseDown) {
if (_wm->_mode & kWMModeButtonDialogStyle)
return true;
else if (!_dims.contains(_wm->_lastClickPos))
return false;
// hovered widget in macwindow will help us set the button status to non-active.
// so we only care about setting active here is ok.
setActive(true);
}