aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2007-07-21 22:57:21 +0000
committerEugene Sandulenko2007-07-21 22:57:21 +0000
commitcfb4b08efcb0c608eca19fccda15f8e24a1cb2f0 (patch)
tree7cc6658b4dac870346444d6b0d88dd04f7d90899 /engines
parent4fa5583af415251bef28ff0cd308aa3befc90872 (diff)
downloadscummvm-rg350-cfb4b08efcb0c608eca19fccda15f8e24a1cb2f0.tar.gz
scummvm-rg350-cfb4b08efcb0c608eca19fccda15f8e24a1cb2f0.tar.bz2
scummvm-rg350-cfb4b08efcb0c608eca19fccda15f8e24a1cb2f0.zip
Proper height for Chinese characters, also remove obsolete hack for computing
character base. svn-id: r28160
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/charset.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/scumm/charset.cpp b/engines/scumm/charset.cpp
index df609eec75..7d115d4c4b 100644
--- a/engines/scumm/charset.cpp
+++ b/engines/scumm/charset.cpp
@@ -82,7 +82,7 @@ void ScummEngine::loadCJKFont() {
case Common::ZH_TWN:
if (_game.id == GID_CMI) {
fontFile = "chinese.fnt";
- numChar = 12779;
+ numChar = 13630;
}
break;
default:
@@ -105,7 +105,7 @@ void ScummEngine::loadCJKFont() {
break;
case Common::ZH_TWN:
_2byteWidth = 16;
- _2byteHeight = 16;
+ _2byteHeight = 15;
// 0xFE -> 0x21. also compared with 0x0d. perhaps a newline
break;
default:
@@ -244,11 +244,11 @@ byte *ScummEngine::get2byteCharPtr(int idx) {
high -= 0x62;
}
- base += (low * 157 + high) * 30;
+ base += (low * 0x9d + high) * 30;
}
}
- return _2byteFontPtr + base - 2;
+ return _2byteFontPtr + base;
break;
}
default: