aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_frame.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-23 16:46:17 -0400
committerPaul Gilbert2016-07-10 16:11:49 -0400
commitd11a95068c2566564e0372bad0ad5c656af79298 (patch)
treeae81a7125701a851b2b7efc7a0aee10e1e3c611d /engines/titanic/pet_control/pet_frame.cpp
parent631d979fb3c213a2de8bf32a72236ab76e3ad1d8 (diff)
downloadscummvm-rg350-d11a95068c2566564e0372bad0ad5c656af79298.tar.gz
scummvm-rg350-d11a95068c2566564e0372bad0ad5c656af79298.tar.bz2
scummvm-rg350-d11a95068c2566564e0372bad0ad5c656af79298.zip
TITANIC: Standardizing PET mouse button methods, quit is now working
Diffstat (limited to 'engines/titanic/pet_control/pet_frame.cpp')
-rw-r--r--engines/titanic/pet_control/pet_frame.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/pet_control/pet_frame.cpp b/engines/titanic/pet_control/pet_frame.cpp
index a9f45fa746..827874fffc 100644
--- a/engines/titanic/pet_control/pet_frame.cpp
+++ b/engines/titanic/pet_control/pet_frame.cpp
@@ -65,7 +65,7 @@ bool CPetFrame::reset() {
bool CPetFrame::MouseButtonDownMsg(CMouseButtonDownMsg *msg) {
for (int idx = 0; idx < 5; ++idx) {
- if (_modeButtons[idx].MouseButtonDownMsg(msg)) {
+ if (_modeButtons[idx].MouseButtonDownMsg(msg->_mousePos)) {
_petControl->setArea(PET_AREAS[idx]);
resetArea();
_modeButtons[idx].setMode(MODE_SELECTED);