diff options
author | Johannes Schickel | 2009-07-26 14:18:34 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-07-26 14:18:34 +0000 |
commit | ec67b583b05ace5a0e70449cf335deeba6df5e14 (patch) | |
tree | 7aa67d6899234f36251274baff19e2d6f6df5ed3 /graphics/sjis.cpp | |
parent | be9c906c728087c7ab10b33d55065f6cf3f1d201 (diff) | |
download | scummvm-rg350-ec67b583b05ace5a0e70449cf335deeba6df5e14.tar.gz scummvm-rg350-ec67b583b05ace5a0e70449cf335deeba6df5e14.tar.bz2 scummvm-rg350-ec67b583b05ace5a0e70449cf335deeba6df5e14.zip |
Add way to overwrite default SJIS font.
svn-id: r42819
Diffstat (limited to 'graphics/sjis.cpp')
-rw-r--r-- | graphics/sjis.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/graphics/sjis.cpp b/graphics/sjis.cpp index d46ac3e965..589e27fd43 100644 --- a/graphics/sjis.cpp +++ b/graphics/sjis.cpp @@ -31,17 +31,19 @@ namespace Graphics { -FontSJIS *FontSJIS::createFont() { +FontSJIS *FontSJIS::createFont(const Common::Platform platform) { FontSJIS *ret = 0; - // First try ScummVM's font. - ret = new FontSjisSVM(); - if (ret && ret->loadData()) - return ret; - delete ret; + // Try the font ROM of the specified platform + if (platform == Common::kPlatformFMTowns) { + ret = new FontTowns(); + if (ret && ret->loadData()) + return ret; + delete ret; + } - // Next try the FM-Towns font ROM. - ret = new FontTowns(); + // Try ScummVM's font. + ret = new FontSjisSVM(); if (ret && ret->loadData()) return ret; delete ret; |