GRAPHICS: MACGUI: amend the behaviour for list style button
This commit is contained in:
parent
9e9fa48101
commit
b16b2c4b6b
2 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue