[Scummvm-git-logs] scummvm master -> 7bcc6ed56ca3a121dc0b6034f362cb5a0752e8ad

dreammaster dreammaster at scummvm.org
Wed Oct 4 02:31:52 CEST 2017


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
7bcc6ed56c TITANIC: DE: Fix positioning of PET tab names


Commit: 7bcc6ed56ca3a121dc0b6034f362cb5a0752e8ad
    https://github.com/scummvm/scummvm/commit/7bcc6ed56ca3a121dc0b6034f362cb5a0752e8ad
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-10-03T20:31:44-04:00

Commit Message:
TITANIC: DE: Fix positioning of PET tab names

Changed paths:
    engines/titanic/pet_control/pet_frame.cpp


diff --git a/engines/titanic/pet_control/pet_frame.cpp b/engines/titanic/pet_control/pet_frame.cpp
index 2898be4..1805bb0 100644
--- a/engines/titanic/pet_control/pet_frame.cpp
+++ b/engines/titanic/pet_control/pet_frame.cpp
@@ -131,11 +131,17 @@ bool CPetFrame::setPetControl(CPetControl *petControl) {
 		}
 		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(TRANSLATE(608 - XLIST_EN[idx],
-				608 - 107), 471);
+		if (g_language == Common::EN_ANY) {
+			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(608 - XLIST_EN[idx], 471);
+			}
+		} else {
+			for (uint idx = 0; idx < 7; ++idx) {
+				_titles[idx].setBounds(Rect(0, 0, 110, 11));
+				_titles[idx].translate(501, 469);
+			}
 		}
 	}
 





More information about the Scummvm-git-logs mailing list