diff options
author | Torbjörn Andersson | 2016-03-27 15:06:59 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2016-03-27 15:23:17 +0200 |
commit | c5b8adb370d9d707aee4b00cf1c711dcd7419d17 (patch) | |
tree | 64db0f50a4c62084f46a0c7477d1fe00f1828fe7 /engines/toon/drew.h | |
parent | c1b04c11e9509658d74f5c05796e77fca5ead7e6 (diff) | |
download | scummvm-rg350-c5b8adb370d9d707aee4b00cf1c711dcd7419d17.tar.gz scummvm-rg350-c5b8adb370d9d707aee4b00cf1c711dcd7419d17.tar.bz2 scummvm-rg350-c5b8adb370d9d707aee4b00cf1c711dcd7419d17.zip |
SAGA: Fix dialog text positions in non-English version (#7064)
This fix applies to drawPanelText(), where we used to hard-code
the text positions. Now we define the dimensions of the area where
the text is drawn (like we do for button texts) and calculate the
position based on the dimensions of the text string.
The drawPanelText() function is used for the Save, Quit, Protect
and Option dialogs, but for everything except the Option dialog it
already centered the text to the dialog. I decided to use this
centering mechanism for the title of the ITE Option dialog, even
though that changes the X coordinate by one pixel. Other than that,
it only affects the following texts:
ITE: Show Dialog / Reading Speed, Music and Sound
IHNM: Reading Speed, Music, Sound, Voices
I have verified that this looks at least ok for the English and
German versions of ITE, and the English, German, French and
Spanish versions of IHNM, so I'm reasonably confident that this
change is ok.
Diffstat (limited to 'engines/toon/drew.h')
0 files changed, 0 insertions, 0 deletions