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);
|
spriteId = sc->getActiveSpriteIDFromPos(pos);
|
||||||
else
|
else
|
||||||
spriteId = sc->getMouseSpriteIDFromPos(pos);
|
spriteId = sc->getMouseSpriteIDFromPos(pos);
|
||||||
|
|
||||||
_currentClickOnSpriteId = sc->getActiveSpriteIDFromPos(pos);
|
_currentClickOnSpriteId = sc->getActiveSpriteIDFromPos(pos);
|
||||||
_currentHandlingChannelId = spriteId;
|
_currentHandlingChannelId = spriteId;
|
||||||
|
|
||||||
|
|
|
@ -179,8 +179,8 @@ bool MacButton::processEvent(Common::Event &event) {
|
||||||
if (_wm->_mouseDown) {
|
if (_wm->_mouseDown) {
|
||||||
if (_wm->_mode & kWMModeButtonDialogStyle)
|
if (_wm->_mode & kWMModeButtonDialogStyle)
|
||||||
return true;
|
return true;
|
||||||
else if (!_dims.contains(_wm->_lastClickPos))
|
// hovered widget in macwindow will help us set the button status to non-active.
|
||||||
return false;
|
// so we only care about setting active here is ok.
|
||||||
|
|
||||||
setActive(true);
|
setActive(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue