aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-17 23:02:15 -0400
committerPaul Gilbert2016-07-10 16:11:26 -0400
commit456287945099266e624dd2802a567579c4d355ea (patch)
treef77ad9391aa9bc803b4fe8c3945f1578c19c7436 /engines/titanic
parentb6e093d668e9e782cc6a08a787d48c857cf53430 (diff)
downloadscummvm-rg350-456287945099266e624dd2802a567579c4d355ea.tar.gz
scummvm-rg350-456287945099266e624dd2802a567579c4d355ea.tar.bz2
scummvm-rg350-456287945099266e624dd2802a567579c4d355ea.zip
TITANIC: Fix highlighting selected PET area button
Diffstat (limited to 'engines/titanic')
-rw-r--r--engines/titanic/pet_control/pet_frame.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/titanic/pet_control/pet_frame.cpp b/engines/titanic/pet_control/pet_frame.cpp
index 3269b9f837..f243054bfb 100644
--- a/engines/titanic/pet_control/pet_frame.cpp
+++ b/engines/titanic/pet_control/pet_frame.cpp
@@ -45,12 +45,12 @@ bool CPetFrame::reset() {
_modeBackground.reset("PetModeBackground", _petControl, MODE_UNSELECTED);
for (int idx = 0; idx < 5; ++idx) {
- CString resName = Common::String::format("PetMode%d", idx);
- _modeButtons[idx].reset(resName, _petControl, MODE_UNSELECTED);
+ CString resName = Common::String::format("PetMode%d", idx + 1);
+ _modeButtons[idx].reset(resName, _petControl, MODE_SELECTED);
}
for (int idx = 0; idx < 6; ++idx) {
- CString resName = Common::String::format("3Pettitle%d", idx);
+ CString resName = Common::String::format("3Pettitle%d", idx + 1);
_titles[idx].reset(resName, _petControl, MODE_UNSELECTED);
}
@@ -110,7 +110,7 @@ bool CPetFrame::setPetControl(CPetControl *petControl) {
const int YLIST[] = { 7, 27, 45, 66, 84 };
for (int idx = 0; idx < 5; ++idx) {
_modeButtons[idx].setBounds(r);
- _modeButtons[idx].translate(0, YLIST[idx]);
+ _modeButtons[idx].translate(4, YLIST[idx]);
}
_modeButtons[PET_AREAS[0]].setMode(MODE_SELECTED);