aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorEugene Sandulenko2008-04-26 20:33:59 +0000
committerEugene Sandulenko2008-04-26 20:33:59 +0000
commit8c9311280ff782554beb4d30446dcc561f12fef8 (patch)
tree947b240a25ab6946aca658e10e43eb5db4b5d79e /engines/scumm
parent2ae81f0096086f726373582a4c0292a99c939ddb (diff)
downloadscummvm-rg350-8c9311280ff782554beb4d30446dcc561f12fef8.tar.gz
scummvm-rg350-8c9311280ff782554beb4d30446dcc561f12fef8.tar.bz2
scummvm-rg350-8c9311280ff782554beb4d30446dcc561f12fef8.zip
Fix Kanji rendering
svn-id: r31734
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/charset.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/charset.cpp b/engines/scumm/charset.cpp
index 6fadcd171c..bf3f7ed66e 100644
--- a/engines/scumm/charset.cpp
+++ b/engines/scumm/charset.cpp
@@ -74,7 +74,7 @@ void ScummEngine::loadCJKFont() {
break;
case Common::JA_JPN:
fontFile = (_game.id == GID_DIG) ? "kanji16.fnt" : "japanese.fnt";
- numChar = 1024;
+ numChar = 8192;
break;
case Common::ZH_TWN:
if (_game.id == GID_CMI) {
@@ -217,7 +217,7 @@ byte *ScummEngine::get2byteCharPtr(int idx) {
int high = 0;
if (low >= 0x20 && low <= 0x7e) {
- base = (low + low * 2 + 81012) * 5;
+ base = (3 * low + 81012) * 5;
} else {
if (low >= 0xa1 && low <= 0xa3) {
base = 392820;