diff options
Diffstat (limited to 'engines/titanic/pet_control/pet_glyphs.cpp')
-rw-r--r-- | engines/titanic/pet_control/pet_glyphs.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/engines/titanic/pet_control/pet_glyphs.cpp b/engines/titanic/pet_control/pet_glyphs.cpp index 8ed8fcf47c..8f8d8ba331 100644 --- a/engines/titanic/pet_control/pet_glyphs.cpp +++ b/engines/titanic/pet_control/pet_glyphs.cpp @@ -307,7 +307,7 @@ bool CPetGlyphs::MouseButtonDownMsg(const Point &pt) { CPetGlyph *glyph = getGlyph(index); if (glyph) { if (_highlightIndex == index) { - glyph->proc28(glyphRect); + glyph->MouseButtonDownMsg(glyphRect); glyph->proc14(); } else { changeHighlight(index); @@ -426,4 +426,16 @@ void CPetGlyphs::endDragging() { _dragGlyph = nullptr; } +bool CPetGlyphs::highlighted14() { + if (_highlightIndex != -1) { + CPetGlyph *pet = getGlyph(_highlightIndex); + if (pet) { + pet->proc14(); + return true; + } + } + + return false; +} + } // End of namespace Titanic |