diff options
Diffstat (limited to 'engines/titanic/pet_control')
-rw-r--r-- | engines/titanic/pet_control/pet_glyphs.cpp | 6 | ||||
-rw-r--r-- | engines/titanic/pet_control/pet_rooms.cpp | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/engines/titanic/pet_control/pet_glyphs.cpp b/engines/titanic/pet_control/pet_glyphs.cpp index bd05342095..5cc428b104 100644 --- a/engines/titanic/pet_control/pet_glyphs.cpp +++ b/engines/titanic/pet_control/pet_glyphs.cpp @@ -101,9 +101,9 @@ void CPetGlyphs::setup(int numVisible, CPetSection *owner) { int buttonsLeft = numVisible * 70 + 21; _scrollLeft.setBounds(Rect(0, 0, 31, 15)); - _scrollLeft.translate(buttonsLeft, 373); + _scrollLeft.translate(buttonsLeft + 7, 373); _scrollRight.setBounds(Rect(0, 0, 31, 15)); - _scrollRight.translate(buttonsLeft, 413); + _scrollRight.translate(buttonsLeft + 7, 413); } void CPetGlyphs::reset() { @@ -155,7 +155,7 @@ void CPetGlyphs::draw(CScreenManager *screenManager) { int itemIndex = getItemIndex(index); if (itemIndex >= 0 && itemIndex < listSize) { - Point pt = getPosition(itemIndex); + Point pt = getPosition(index); CPetGlyph *glyph = getGlyph(itemIndex); if (glyph) diff --git a/engines/titanic/pet_control/pet_rooms.cpp b/engines/titanic/pet_control/pet_rooms.cpp index fb92f2692d..7a0c23c9b9 100644 --- a/engines/titanic/pet_control/pet_rooms.cpp +++ b/engines/titanic/pet_control/pet_rooms.cpp @@ -165,7 +165,8 @@ void CPetRooms::enter(PetArea oldArea) { } void CPetRooms::enterRoom(CRoomItem *room) { - + if (room) + resetHighlight(); } CPetText *CPetRooms::getText() { |