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_load_save.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_load_save.cpp')
-rw-r--r-- | engines/titanic/pet_control/pet_load_save.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/pet_control/pet_load_save.cpp b/engines/titanic/pet_control/pet_load_save.cpp index 811fd12089..b8cb3dae46 100644 --- a/engines/titanic/pet_control/pet_load_save.cpp +++ b/engines/titanic/pet_control/pet_load_save.cpp @@ -72,7 +72,7 @@ void CPetLoadSave::draw2(CScreenManager *screenManager) { } bool CPetLoadSave::checkHighlight(const Point &pt) { - if (_btnLoadSave.highlightBounds(pt)) + if (_btnLoadSave.MouseButtonDownMsg(pt)) return true; checkSlotsHighlight(pt); @@ -80,7 +80,7 @@ bool CPetLoadSave::checkHighlight(const Point &pt) { } bool CPetLoadSave::MouseButtonDownMsg(CMouseButtonDownMsg *msg) { - if (_btnLoadSave.MouseButtonDownMsg(msg->_mousePos)) { + if (_btnLoadSave.MouseButtonUpMsg(msg->_mousePos)) { execute(); resetSlots(); return true; |