From 9edf4eaf3f8754c2e26d40e87a7043065e106e07 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 6 Aug 2007 03:01:15 +0000 Subject: Fix bug #1768080 - FEEBLE: Wrong text display in Oracle. A regression, caused by slight difference in charset code for FF/PP. svn-id: r28463 --- engines/agos/charset.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'engines/agos') diff --git a/engines/agos/charset.cpp b/engines/agos/charset.cpp index 9a37d90c33..005b3fe549 100644 --- a/engines/agos/charset.cpp +++ b/engines/agos/charset.cpp @@ -543,7 +543,15 @@ void AGOSEngine::justifyOutPut(byte chr) { doOutput(&chr, 1); clsCheck(_textWindow); } else if (chr == 0 || chr == ' ' || chr == 10) { - if (_printCharMaxPos - _printCharCurPos >= _printCharPixelCount) { + bool fit; + + if (getGameType() == GType_FF || getGameType() == GType_PP) { + fit = _printCharMaxPos - _printCharCurPos > _printCharPixelCount; + } else { + fit = _printCharMaxPos - _printCharCurPos >= _printCharPixelCount; + } + + if (_printCharMaxPos - _printCharCurPos > _printCharPixelCount) { _printCharCurPos += _printCharPixelCount; doOutput(_lettersToPrintBuf, _numLettersToPrint); -- cgit v1.2.3