diff options
author | Johannes Schickel | 2009-07-26 14:17:40 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-07-26 14:17:40 +0000 |
commit | cb960ad976bf523704beb71641bc242501a67a53 (patch) | |
tree | b3c3b481c752c3dbdb3c177f942fd36dd8af477e /graphics/sjis.h | |
parent | 0a03ae8265a894270f2bd299bde1c0b22d935490 (diff) | |
download | scummvm-rg350-cb960ad976bf523704beb71641bc242501a67a53.tar.gz scummvm-rg350-cb960ad976bf523704beb71641bc242501a67a53.tar.bz2 scummvm-rg350-cb960ad976bf523704beb71641bc242501a67a53.zip |
Change the way the font data for SJIS fonts is load.
svn-id: r42815
Diffstat (limited to 'graphics/sjis.h')
-rw-r--r-- | graphics/sjis.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/graphics/sjis.h b/graphics/sjis.h index 661a8834b0..141a1ed13a 100644 --- a/graphics/sjis.h +++ b/graphics/sjis.h @@ -50,6 +50,11 @@ public: virtual ~FontSJIS() {} /** + * Load the font data. + */ + virtual bool loadData() = 0; + + /** * Enable outline drawing. * * After changing outline state, getFontHeight and getFontWidth might return @@ -87,6 +92,9 @@ public: virtual void drawChar(void *dst, uint16 ch, int pitch, int bpp, uint32 c1, uint32 c2) const = 0; }; +/** + * A base class to render 16x16 monochrome SJIS fonts. + */ class FontSJIS16x16 : public FontSJIS { public: FontSJIS16x16() : _outlineEnabled(false) {} @@ -119,9 +127,9 @@ protected: class FontTowns : public FontSJIS16x16 { public: /** - * Loads the ROM data from the given read stream. + * Loads the ROM data from "FMT_FNT.ROM". */ - bool loadFromStream(Common::ReadStream &stream); + bool loadData(); private: enum { @@ -142,7 +150,7 @@ public: ~FontSjisSVM() { delete[] _fontData; } /** - * Load the ROM data from "SJIS.FNT". + * Load the font data from "SJIS.FNT". */ bool loadData(); |