mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-24 21:21:05 +00:00
Workaround for bug #864030 (COMI: ASCII 0xb (11) not handled)
svn-id: r13621
This commit is contained in:
parent
e39cfbd864
commit
f9cd78cedd
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user