diff options
author | Thierry Crozat | 2017-10-10 23:44:47 +0100 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 02:15:34 +0000 |
commit | c3241c7c4215c1ef8fa9305b2663a92bf2868834 (patch) | |
tree | f49fd37fea69c1fb9dfad62dd407ab614aae8500 /engines | |
parent | 7c4d4e1647d3908bc8f67979bc632d3862d4af2b (diff) | |
download | scummvm-rg350-c3241c7c4215c1ef8fa9305b2663a92bf2868834.tar.gz scummvm-rg350-c3241c7c4215c1ef8fa9305b2663a92bf2868834.tar.bz2 scummvm-rg350-c3241c7c4215c1ef8fa9305b2663a92bf2868834.zip |
SUPERNOVA: Improve translated title display
The title is displayed on three lines aligned on their center,
but the code provides the left coordinate for each line so we
need to compute it based on the translated line length.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/supernova/rooms.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/supernova/rooms.cpp b/engines/supernova/rooms.cpp index 6aefe80cbb..eb48371606 100644 --- a/engines/supernova/rooms.cpp +++ b/engines/supernova/rooms.cpp @@ -154,9 +154,12 @@ void Intro::titleScreen() { _gm->wait2(1); titleFadeIn(); _vm->renderText(kStringTitleVersion, 295, 190, kColorWhite44); - _vm->renderText(kStringTitle1, 64, 120, kColorLightBlue); - _vm->renderText(kStringTitle2, 44, 132, kColorWhite99); - _vm->renderText(kStringTitle3, 35, 142, kColorWhite99); + const Common::String& title1 = _vm->getGameString(kStringTitle1); + const Common::String& title2 = _vm->getGameString(kStringTitle2); + const Common::String& title3 = _vm->getGameString(kStringTitle3); + _vm->renderText(title1, 78 - _vm->textWidth(title1)/2, 120, kColorLightBlue); + _vm->renderText(title2, 78 - _vm->textWidth(title2)/2, 132, kColorWhite99); + _vm->renderText(title3, 78 - _vm->textWidth(title3)/2, 142, kColorWhite99); _gm->wait2(1); CursorMan.showMouse(true); _vm->playSoundMod(kMusicIntro); |