Workaround for bug #864030 (COMI: ASCII 0xb (11) not handled)

svn-id: r13621
This commit is contained in:
Max Horn 2004-04-25 13:34:19 +00:00
parent e39cfbd864
commit f9cd78cedd
2 changed files with 9 additions and 3 deletions

View File

@ -146,9 +146,7 @@ void CharsetRenderer::addLinebreaks(int a, byte *str, int pos, int maxwidth) {
while ((chr = str[pos++]) != 0) {
if (chr == '@')
continue;
if (chr == 254)
chr = 255;
if (chr == 255) {
if (chr == 254 || chr == 255) {
chr = str[pos++];
if (chr == 3) // 'Wait'
break;

View File

@ -191,6 +191,14 @@ void ScummEngine::CHARSET_1() {
_keepText = false;
break;
}
// FIXME: This is a workaround for bug #864030: In COMI, some text
// contains ASCII character 11 = 0xB. It's not quite clear what it is
// good for; so for now we just ignore it, which seems to match the
// original engine (BTW, traditionally, this is a 'vertical tab').
if (c == 0x0B)
continue;
if (c == 13) {
newLine:;
_charset->_nextLeft = _string[0].xpos;