diff options
author | Paul Gilbert | 2016-04-28 18:19:47 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:22:31 -0400 |
commit | e778ac8bcd6c2e0a026c813614c884e5044110c3 (patch) | |
tree | 63922a8db8294825c95e72467abe6cfd97a9dcb6 /engines/titanic/pet_control/pet_element.cpp | |
parent | 6f001d831623a46f643379554d20e94463d8c2f1 (diff) | |
download | scummvm-rg350-e778ac8bcd6c2e0a026c813614c884e5044110c3.tar.gz scummvm-rg350-e778ac8bcd6c2e0a026c813614c884e5044110c3.tar.bz2 scummvm-rg350-e778ac8bcd6c2e0a026c813614c884e5044110c3.zip |
TITANIC: FIx confusion between mouse down & up messages in CPETElement hierarchy
Diffstat (limited to 'engines/titanic/pet_control/pet_element.cpp')
-rw-r--r-- | engines/titanic/pet_control/pet_element.cpp | 4 |
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 3e9c991d1d..616877e15e 100644 --- a/engines/titanic/pet_control/pet_element.cpp +++ b/engines/titanic/pet_control/pet_element.cpp @@ -33,14 +33,14 @@ void CPetElement::getBounds(Rect *rect) { *rect = Rect(); } -bool CPetElement::highlightBounds(const Point &pt) { +bool CPetElement::MouseButtonDownMsg(const Point &pt) { bool result = _bounds.contains(pt); if (result) setMode(MODE_SELECTED); return result; } -bool CPetElement::MouseButtonDownMsg(const Point &pt) { +bool CPetElement::MouseButtonUpMsg(const Point &pt) { bool result = _bounds.contains(pt); if (result) setMode(MODE_UNSELECTED); |