Patch #820010: Support Kanji version

svn-id: r11020
This commit is contained in:
Max Horn 2003-11-01 15:19:30 +00:00
parent 9f33b3abbe
commit ca69882256
2 changed files with 110 additions and 21 deletions

View file

@ -307,7 +307,10 @@ void ScummEngine::CHARSET_1() {
_charset->_left = _charset->_nextLeft;
_charset->_top = _charset->_nextTop;
if (c & 0x80 && _CJKMode)
c += *buffer++ * 256;
if(_language == 6 && ((c > 0x84 && c < 0x88) || (c > 0x9f && c < 0xe0) || (c > 0xea && c <= 0xff)))
c = 0x20; //not in S-JIS
else
c += *buffer++ * 256;
if (_version <= 3) {
_charset->printChar(c);
} else {