DIRECTOR: Make isMouseIn return false for invisible sprites

This commit is contained in:
djsrv 2021-08-23 15:59:02 -04:00
parent 1412148344
commit 80b4d55586

View File

@ -198,8 +198,10 @@ bool Channel::isActiveText() {
}
bool Channel::isMouseIn(const Common::Point &pos) {
Common::Rect bbox = getBbox();
if (!_visible)
return false;
Common::Rect bbox = getBbox();
if (!bbox.contains(pos))
return false;