diff options
author | Paul Gilbert | 2012-02-15 22:28:07 +1100 |
---|---|---|
committer | Strangerke | 2012-04-06 08:21:24 +0200 |
commit | 94d881b141bc239f67490f542a1414654f54461c (patch) | |
tree | f340d8384783ebc24067a3196845ba7e5a18c220 | |
parent | d738576f1c966d4e515c3a3ee64bd0972b3efdca (diff) | |
download | scummvm-rg350-94d881b141bc239f67490f542a1414654f54461c.tar.gz scummvm-rg350-94d881b141bc239f67490f542a1414654f54461c.tar.bz2 scummvm-rg350-94d881b141bc239f67490f542a1414654f54461c.zip |
MORTEVIELLE: Fix the 'You Are Alone' to be properly justified with English text
-rw-r--r-- | engines/mortevielle/mor.cpp | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/engines/mortevielle/mor.cpp b/engines/mortevielle/mor.cpp index eb900d1515..de784471f8 100644 --- a/engines/mortevielle/mor.cpp +++ b/engines/mortevielle/mor.cpp @@ -246,10 +246,8 @@ void clsf10() { st = g_vm->getString(S_LOURDE); else if (s.conf > 65) st = g_vm->getString(S_MALSAINE); - if (res == 1) - co = 10; - else co = 6; - co = 574 - ((uint)co * st.size() >> 1); + + co = 580 - (g_vm->_screenSurface.getStringWidth(st) / 2); g_vm->_screenSurface.putxy(co, 92); g_vm->_screenSurface.writeg(st, 4); if (res == 1) co = 620; @@ -563,13 +561,18 @@ void person() { for (int cf = 1; cf <= 8; cf ++) g_vm->_menu.disableMenuItem(g_vm->_menu._disc[cf]); + Common::String sYou = g_vm->getString(S_YOU); + Common::String sAre = g_vm->getString(S_ARE); + Common::String sAlone = g_vm->getString(S_ALONE); + clsf10(); - g_vm->_screenSurface.putxy(560, 30); - g_vm->_screenSurface.writeg(g_vm->getString(S_YOU), 4); - g_vm->_screenSurface.putxy(560, 50); - g_vm->_screenSurface.writeg(g_vm->getString(S_ARE), 4); - g_vm->_screenSurface.putxy(560, 70); - g_vm->_screenSurface.writeg(g_vm->getString(S_ALONE), 4); + g_vm->_screenSurface.putxy(580 - (g_vm->_screenSurface.getStringWidth(sYou) / 2), 30); + g_vm->_screenSurface.writeg(sYou, 4); + g_vm->_screenSurface.putxy(580 - (g_vm->_screenSurface.getStringWidth(sAre) / 2), 50); + g_vm->_screenSurface.writeg(sAre, 4); + g_vm->_screenSurface.putxy(580 - (g_vm->_screenSurface.getStringWidth(sAlone) / 2), 70); + g_vm->_screenSurface.writeg(sAlone, 4); + ipers = 0; } |