diff options
author | Paul Gilbert | 2014-12-31 16:27:37 -1000 |
---|---|---|
committer | Paul Gilbert | 2014-12-31 16:27:37 -1000 |
commit | c6a2f539d428ea580274a3ac5605e00fad7b8570 (patch) | |
tree | c60b0739829ea14d7164873e3817b8324727502a /engines/xeen/xsurface.h | |
parent | d21c47e019434797217b1b44708c8f1810a003b3 (diff) | |
download | scummvm-rg350-c6a2f539d428ea580274a3ac5605e00fad7b8570.tar.gz scummvm-rg350-c6a2f539d428ea580274a3ac5605e00fad7b8570.tar.bz2 scummvm-rg350-c6a2f539d428ea580274a3ac5605e00fad7b8570.zip |
XEEN: Split the font code into it's own file
Diffstat (limited to 'engines/xeen/xsurface.h')
-rw-r--r-- | engines/xeen/xsurface.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/engines/xeen/xsurface.h b/engines/xeen/xsurface.h index 6e88ae9f97..64cdab0953 100644 --- a/engines/xeen/xsurface.h +++ b/engines/xeen/xsurface.h @@ -30,33 +30,7 @@ namespace Xeen { -#define FONT_WIDTH 8 -#define FONT_HEIGHT 8 -#define DEFAULT_BG_COLOR 0x99 - -enum Justify { JUSTIFY_NONE = 0, JUSTIFY_CENTER = 1, JUSTIFY_RIGHT = 2 }; - class XSurface: public Graphics::Surface { -private: - const char *_displayString; - bool _msgWraps; - - char getNextChar(); - - bool getNextCharWidth(int &total); - - bool newLine(const Common::Rect &bounds); - - int fontAtoi(int len = 3); - - void setTextColor(int idx); -public: - static const byte *_fontData; - Common::Point _writePos; - byte _textColors[4]; - byte _bgColor; - bool _fontReduced; - Justify _fontJustify; public: virtual void addDirtyRect(const Common::Rect &r) {} public: @@ -75,12 +49,6 @@ public: void blitTo(XSurface &dest) const; bool empty() const { return getPixels() == nullptr; } - - void writeSymbol(int symbolId); - - Common::String writeString(const Common::String &s, const Common::Rect &bounds); - - void writeChar(char c); }; } // End of namespace Xeen |