aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-04-10 03:51:04 +0000
committerTorbjörn Andersson2006-04-10 03:51:04 +0000
commit8fc794b4324f7544f00633dd51ea09c95aec3873 (patch)
treee7e4be0c0c59b23f07a6b1c4d06483b69540b06c
parentdf1bc871f19736df177119e4d5d945ce5eb97244 (diff)
downloadscummvm-rg350-8fc794b4324f7544f00633dd51ea09c95aec3873.tar.gz
scummvm-rg350-8fc794b4324f7544f00633dd51ea09c95aec3873.tar.bz2
scummvm-rg350-8fc794b4324f7544f00633dd51ea09c95aec3873.zip
Fixed line breaking regression caused by adding the width of the word a second
time, rather than the width of a blankspace character. svn-id: r21740
-rw-r--r--engines/simon/charset.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/simon/charset.cpp b/engines/simon/charset.cpp
index db765680bf..cdc7753151 100644
--- a/engines/simon/charset.cpp
+++ b/engines/simon/charset.cpp
@@ -317,7 +317,7 @@ void SimonEngine::showmessage_print_char(byte chr) {
print_char_helper_1(&chr, 1);
print_char_helper_5(_textWindow);
} else if (chr == 0 || chr == ' ' || chr == 10) {
- uint count = (getGameType() == GType_FF) ? _printCharPixelCount + 1: _printCharPixelCount;
+ uint count = (getGameType() == GType_FF) ? _printCharPixelCount + 1 : _printCharPixelCount;
if (_printCharMaxPos - _printCharCurPos >= count) {
_printCharCurPos += _printCharPixelCount;
print_char_helper_1(_lettersToPrintBuf, _numLettersToPrint);
@@ -330,7 +330,7 @@ void SimonEngine::showmessage_print_char(byte chr) {
if (chr == 10)
_printCharCurPos = 0;
else if (chr != 0)
- _printCharCurPos += _printCharPixelCount;
+ _printCharCurPos += (getGameType() == GType_FF) ? feebleFontSize[chr - 32] : 1;
}
} else {
const byte newline_character = 10;