[Scummvm-cvs-logs] scummvm master -> 9eebe512c8c0cfb7bfd73ecd9e9e163cf95f8403

Strangerke Strangerke at scummvm.org
Mon Dec 5 00:03:14 CET 2011


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:
9eebe512c8 CGE: Add a hack to fix bug #3450423 (infoline too large in polish version, scene 14)


Commit: 9eebe512c8c0cfb7bfd73ecd9e9e163cf95f8403
    https://github.com/scummvm/scummvm/commit/9eebe512c8c0cfb7bfd73ecd9e9e163cf95f8403
Author: Strangerke (strangerke at scummvm.org)
Date: 2011-12-04T15:02:25-08:00

Commit Message:
CGE: Add a hack to fix bug #3450423 (infoline too large in polish version, scene 14)

Changed paths:
    engines/cge/talk.cpp



diff --git a/engines/cge/talk.cpp b/engines/cge/talk.cpp
index 467b39b..d9be56e 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)






More information about the Scummvm-git-logs mailing list