diff options
author | Paul Gilbert | 2016-04-23 23:30:17 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-10 16:11:57 -0400 |
commit | 4180e85bc0da500c347a3c5076ec7e6921e8daff (patch) | |
tree | 4a690e74f1d04daf5a6a811fe79f691b11ff8014 /engines/titanic/pet_control/pet_glyphs.cpp | |
parent | 73258800cf10f94cee5a9745649f8c5dbb67109c (diff) | |
download | scummvm-rg350-4180e85bc0da500c347a3c5076ec7e6921e8daff.tar.gz scummvm-rg350-4180e85bc0da500c347a3c5076ec7e6921e8daff.tar.bz2 scummvm-rg350-4180e85bc0da500c347a3c5076ec7e6921e8daff.zip |
TITANIC: Beginnings of PET Rooms glyph
Diffstat (limited to 'engines/titanic/pet_control/pet_glyphs.cpp')
-rw-r--r-- | engines/titanic/pet_control/pet_glyphs.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
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); } } |