aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2009-07-26 14:17:21 +0000
committerJohannes Schickel2009-07-26 14:17:21 +0000
commit0a03ae8265a894270f2bd299bde1c0b22d935490 (patch)
tree56d0d7e96ecf80d8acb016c541aac40511102d9e
parent0a612f40eb047fc80fafb1a7df4b8788d2c4fe66 (diff)
downloadscummvm-rg350-0a03ae8265a894270f2bd299bde1c0b22d935490.tar.gz
scummvm-rg350-0a03ae8265a894270f2bd299bde1c0b22d935490.tar.bz2
scummvm-rg350-0a03ae8265a894270f2bd299bde1c0b22d935490.zip
Change KYRA to use our SJIS font, when it's available.
svn-id: r42814
-rw-r--r--engines/kyra/screen.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp
index 6c2c48cb02..c1ab409e17 100644
--- a/engines/kyra/screen.cpp
+++ b/engines/kyra/screen.cpp
@@ -95,6 +95,14 @@ bool Screen::init() {
}
if (_useSJIS) {
+ // First we try to use ScummVM's own SJIS font.
+ Graphics::FontSjisSVM *font = new Graphics::FontSjisSVM();
+ if (!font || !font->loadData()) {
+ delete font;
+ } else {
+ _sjisFont = font;
+ }
+
if (!_sjisFont) {
// we use the FM-TOWNS font rom for PC-98, too, until we feel
// like adding support for the PC-98 font