From 4180e85bc0da500c347a3c5076ec7e6921e8daff Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 23 Apr 2016 23:30:17 -0400 Subject: TITANIC: Beginnings of PET Rooms glyph --- engines/titanic/pet_control/pet_glyphs.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'engines/titanic/pet_control/pet_glyphs.cpp') diff --git a/engines/titanic/pet_control/pet_glyphs.cpp b/engines/titanic/pet_control/pet_glyphs.cpp index 914ddbbe0b..8ed8fcf47c 100644 --- a/engines/titanic/pet_control/pet_glyphs.cpp +++ b/engines/titanic/pet_control/pet_glyphs.cpp @@ -32,7 +32,7 @@ bool CPetGlyph::setup(CPetControl *petControl, CPetGlyphs *owner) { return true; } -void CPetGlyph::drawAt(CScreenManager *screenManager, const Point &pt) { +void CPetGlyph::drawAt(CScreenManager *screenManager, const Point &pt, bool isHighlighted) { _element.translate(pt.x, pt.y); _element.draw(screenManager); _element.translate(-pt.x, -pt.y); @@ -151,10 +151,8 @@ void CPetGlyphs::draw(CScreenManager *screenManager) { Point pt = getPosition(itemIndex); CPetGlyph *glyph = getGlyph(itemIndex); - if (glyph) { - // TODO: Comparison with highlighted index, and a redundant push? - glyph->drawAt(screenManager, pt); - } + if (glyph) + glyph->drawAt(screenManager, pt, index == _highlightIndex); } } -- cgit v1.2.3