aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control/pet_element.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-01 08:32:30 -0400
committerPaul Gilbert2016-04-01 08:32:30 -0400
commit883e198eb3c5e54c2c3bc9b01f65f3420840873f (patch)
tree5f46493b9482ae95bae99a6dc9c137cea330ad1a /engines/titanic/pet_control/pet_element.cpp
parent43f183c207023c4398548ae385c9f3cbf853d9a9 (diff)
downloadscummvm-rg350-883e198eb3c5e54c2c3bc9b01f65f3420840873f.tar.gz
scummvm-rg350-883e198eb3c5e54c2c3bc9b01f65f3420840873f.tar.bz2
scummvm-rg350-883e198eb3c5e54c2c3bc9b01f65f3420840873f.zip
TITANIC: Implement PET CMouseButtonDownMsg handling
Diffstat (limited to 'engines/titanic/pet_control/pet_element.cpp')
-rw-r--r--engines/titanic/pet_control/pet_element.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/pet_control/pet_element.cpp b/engines/titanic/pet_control/pet_element.cpp
index a4c5b271a0..423c79af8b 100644
--- a/engines/titanic/pet_control/pet_element.cpp
+++ b/engines/titanic/pet_control/pet_element.cpp
@@ -40,8 +40,8 @@ bool CPetElement::proc6(const Common::Point &pt) {
return result;
}
-bool CPetElement::proc7(const Common::Point &pt) {
- bool result = _bounds.contains(pt);
+bool CPetElement::handleMessage(CMouseButtonDownMsg &msg) {
+ bool result = _bounds.contains(msg._mousePos);
if (result)
setMode(MODE_UNSELECTED);
return result;