diff options
author | Johannes Schickel | 2009-10-11 11:28:43 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-10-11 11:28:43 +0000 |
commit | 6492c00a3ad24c16ef77e837c478bbc1b4c1e1bb (patch) | |
tree | 72fc95ea86a5de267594860db3440c702687f9f4 /engines/kyra/screen.h | |
parent | 353fe8ae563d52eaa0ae07a71f6a839d8854b68a (diff) | |
download | scummvm-rg350-6492c00a3ad24c16ef77e837c478bbc1b4c1e1bb.tar.gz scummvm-rg350-6492c00a3ad24c16ef77e837c478bbc1b4c1e1bb.tar.bz2 scummvm-rg350-6492c00a3ad24c16ef77e837c478bbc1b4c1e1bb.zip |
Revert changes to graphics/sjis.h in r44709.
svn-id: r44904
Diffstat (limited to 'engines/kyra/screen.h')
-rw-r--r-- | engines/kyra/screen.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/engines/kyra/screen.h b/engines/kyra/screen.h index 99459214ca..82862fcbf7 100644 --- a/engines/kyra/screen.h +++ b/engines/kyra/screen.h @@ -44,6 +44,7 @@ namespace Kyra { typedef Common::Functor0<void> UpdateFunctor; class KyraEngine_v1; +class Screen; struct ScreenDim { uint16 sx; @@ -176,7 +177,7 @@ private: */ class SJISFont : public Font { public: - SJISFont(Graphics::FontSJIS *font, const uint8 invisColor, bool is16Color); + SJISFont(Screen *s, Graphics::FontSJIS *font, const uint8 invisColor, bool is16Color, bool outlineSize); ~SJISFont() { unload(); } bool usesOverlay() const { return true; } @@ -195,6 +196,10 @@ private: Graphics::FontSJIS *_font; const uint8 _invisColor; const bool _is16Color; + + const Screen *_screen; + int _sjisWidth, _asciiWidth; + int _fontHeight; }; /** @@ -421,6 +426,8 @@ public: const ScreenDim *_curDim; + bool isSJISChar(uint16 ch) const; + // shape handling uint8 *encodeShape(int x, int y, int w, int h, int flags); @@ -492,8 +499,6 @@ protected: void copyOverlayRegion(int x, int y, int x2, int y2, int w, int h, int srcPage, int dstPage); // font/text specific - bool isSJISChar(uint16 ch) const; - bool requiresSJISFont(const char *s) const; uint16 fetchChar(const char *&s) const; void drawChar(uint16 c, int x, int y); |