aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/pet_control
diff options
context:
space:
mode:
authorPaul Gilbert2017-10-03 20:00:42 -0400
committerPaul Gilbert2017-10-03 20:00:42 -0400
commit1d4212a946c4494e38e3b68256d1523bb2b64af7 (patch)
tree9ccd20316ccef21d8e1ed43dfb9c0df63235510f /engines/titanic/pet_control
parent5585c1d19b213b3d28f2d8bc33f868150dd81ff1 (diff)
downloadscummvm-rg350-1d4212a946c4494e38e3b68256d1523bb2b64af7.tar.gz
scummvm-rg350-1d4212a946c4494e38e3b68256d1523bb2b64af7.tar.bz2
scummvm-rg350-1d4212a946c4494e38e3b68256d1523bb2b64af7.zip
TITANIC: DE: Fix horizontal placement of PET mode buttons
Diffstat (limited to 'engines/titanic/pet_control')
-rw-r--r--engines/titanic/pet_control/pet_frame.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/engines/titanic/pet_control/pet_frame.cpp b/engines/titanic/pet_control/pet_frame.cpp
index 738116ed8f..2898be41e3 100644
--- a/engines/titanic/pet_control/pet_frame.cpp
+++ b/engines/titanic/pet_control/pet_frame.cpp
@@ -22,7 +22,7 @@
#include "titanic/pet_control/pet_frame.h"
#include "titanic/pet_control/pet_control.h"
-#include "titanic/titanic.h"
+#include "titanic/translation.h"
namespace Titanic {
@@ -103,10 +103,10 @@ bool CPetFrame::setPetControl(CPetControl *petControl) {
// Set up the PET areas we'll have buttons for
_petAreas.clear();
- if (g_vm->isGerman())
- _petAreas.assign(&PET_AREAS_DE[0], &PET_AREAS_DE[0] + 6);
- else
+ if (g_language == Common::EN_ANY)
_petAreas.assign(&PET_AREAS_EN[0], &PET_AREAS_EN[0] + 5);
+ else
+ _petAreas.assign(&PET_AREAS_DE[0], &PET_AREAS_DE[0] + 6);
// Set the bounds of the individual elements
_background.setBounds(Rect(20, 350, 620, 480));
@@ -126,15 +126,16 @@ bool CPetFrame::setPetControl(CPetControl *petControl) {
_modeButtons.resize(_petAreas.size());
for (uint idx = 0; idx < _modeButtons.size(); ++idx) {
_modeButtons[idx].setBounds(r);
- _modeButtons[idx].translate(4, g_vm->isGerman() ? YLIST_DE[idx] : YLIST_EN[idx]);
+ _modeButtons[idx].translate(TRANSLATE(4, 0),
+ TRANSLATE(YLIST_EN[idx], YLIST_DE[idx]));
}
setArea(PET_CONVERSATION);
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(g_vm->isGerman() ? 608 - 107 :
- 608 - XLIST_EN[idx], 471);
+ _titles[idx].translate(TRANSLATE(608 - XLIST_EN[idx],
+ 608 - 107), 471);
}
}