aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic
diff options
context:
space:
mode:
authorPaul Gilbert2017-06-25 12:49:12 -0400
committerPaul Gilbert2017-06-25 12:49:12 -0400
commit56890bfb9f40df8cc78e0c1b91b32a6f5b4f8ca1 (patch)
tree0340a8c587d5882d13769f6eadd6a7a6fc2675d5 /engines/titanic
parent90222f694ea80840fb777f5aa10c5eeaadf508ff (diff)
downloadscummvm-rg350-56890bfb9f40df8cc78e0c1b91b32a6f5b4f8ca1.tar.gz
scummvm-rg350-56890bfb9f40df8cc78e0c1b91b32a6f5b4f8ca1.tar.bz2
scummvm-rg350-56890bfb9f40df8cc78e0c1b91b32a6f5b4f8ca1.zip
TITANIC: Set PET area title positions for German version
Diffstat (limited to 'engines/titanic')
-rw-r--r--engines/titanic/pet_control/pet_frame.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/titanic/pet_control/pet_frame.cpp b/engines/titanic/pet_control/pet_frame.cpp
index bc8d87b8e4..ffc2c7b1f6 100644
--- a/engines/titanic/pet_control/pet_frame.cpp
+++ b/engines/titanic/pet_control/pet_frame.cpp
@@ -56,7 +56,7 @@ bool CPetFrame::reset() {
_modeButtons[idx].reset(resName, _petControl, MODE_SELECTED);
}
- for (uint idx = 0; idx < 7; ++idx) {
+ for (uint idx = 0; idx < ARRAYSIZE(_titles); ++idx) {
CString resName = Common::String::format("3Pettitle%d", idx + 1);
_titles[idx].setup(MODE_UNSELECTED, resName, _petControl);
}
@@ -130,10 +130,11 @@ bool CPetFrame::setPetControl(CPetControl *petControl) {
}
_modeButtons[PET_CONVERSATION].setMode(MODE_SELECTED);
- const int XLIST[] = { 73, 54, 85, 109, 38, 71 };
- for (int idx = 0; idx < 6; ++idx) {
+ const int XLIST_EN[] = { 73, 54, 85, 109, 38, 71 };
+ for (uint idx = 0; idx < _petAreas.size(); ++idx) {
_titles[idx].setBounds(Rect(0, 0, 110, 11));
- _titles[idx].translate(600 - XLIST[idx], 471);
+ _titles[idx].translate(g_vm->isGerman() ? 608 - 107 :
+ 608 - XLIST_EN[idx], 471);
}
}