aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/talk.cpp
diff options
context:
space:
mode:
authorStrangerke2011-12-05 00:02:25 +0100
committerStrangerke2011-12-05 00:02:25 +0100
commit9eebe512c8c0cfb7bfd73ecd9e9e163cf95f8403 (patch)
treee91b9c174bee1bea654bea720b8f964407d9b744 /engines/cge/talk.cpp
parent2ab06a6aae149fd0dd32cb9568d94da0cfa1ea2a (diff)
downloadscummvm-rg350-9eebe512c8c0cfb7bfd73ecd9e9e163cf95f8403.tar.gz
scummvm-rg350-9eebe512c8c0cfb7bfd73ecd9e9e163cf95f8403.tar.bz2
scummvm-rg350-9eebe512c8c0cfb7bfd73ecd9e9e163cf95f8403.zip
CGE: Add a hack to fix bug #3450423 (infoline too large in polish version, scene 14)
Diffstat (limited to 'engines/cge/talk.cpp')
-rw-r--r--engines/cge/talk.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/cge/talk.cpp b/engines/cge/talk.cpp
index 467b39be40..d9be56e798 100644
--- a/engines/cge/talk.cpp
+++ b/engines/cge/talk.cpp
@@ -271,7 +271,15 @@ void InfoLine::update(const char *text) {
uint16 cw = _vm->_font->_widthArr[(unsigned char)*text];
uint8 *fp = _vm->_font->_map + _vm->_font->_pos[(unsigned char)*text];
- for (uint16 i = 0; i < cw; i++) {
+ // This hack compensates the font modification done to fix the display
+ // of the 'F1' text. Specifically, it reduces the width of the space
+ // character when it has been enlarged.
+ // This hack fixes bug #3450423.
+ int8 hackStart = 0;
+ if ((*text == 0x20) && (cw > 4))
+ hackStart = 2;
+
+ for (uint16 i = hackStart; i < cw; i++) {
uint16 b = fp[i];
for (uint16 n = 0; n < kFontHigh; n++) {
if (b & 1)