diff options
author | Paul Gilbert | 2013-06-15 11:39:28 -0400 |
---|---|---|
committer | Paul Gilbert | 2013-06-15 11:39:28 -0400 |
commit | 0a0db2bf73fc417d1094ae744e0d350dd4462d38 (patch) | |
tree | 739de6bc60f48fbbde8b01916be4dac38618365c /engines/voyeur/graphics.h | |
parent | b02c72b45f0ea15490b41896e33d40cb783b96e6 (diff) | |
download | scummvm-rg350-0a0db2bf73fc417d1094ae744e0d350dd4462d38.tar.gz scummvm-rg350-0a0db2bf73fc417d1094ae744e0d350dd4462d38.tar.bz2 scummvm-rg350-0a0db2bf73fc417d1094ae744e0d350dd4462d38.zip |
VOYEUR: Refactoring and bugfixes for correctly loading fontInfo and font resources
Diffstat (limited to 'engines/voyeur/graphics.h')
-rw-r--r-- | engines/voyeur/graphics.h | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/engines/voyeur/graphics.h b/engines/voyeur/graphics.h index 9c66a32a67..02e9698a5e 100644 --- a/engines/voyeur/graphics.h +++ b/engines/voyeur/graphics.h @@ -43,35 +43,9 @@ class PictureResource; class ViewPortResource; class ViewPortListResource; class FontResource; +class FontInfoResource; class CMapResource; -enum FontJustify { ALIGN_LEFT = 0, ALIGN_CENTRE = 1, ALIGN_RIGHT = 2 }; - -class FontInfo { -public: - FontResource *_curFont; - byte _picFlags; - byte _picSelect; - byte _picPick; - byte _picOnOff; - byte _fontFlags; - FontJustify _justify; - int _fontSaveBack; - Common::Point _pos; - int _justifyWidth; - int _justifyHeight; - Common::Point _shadow; - int _foreColor; - int _backColor; - int _shadowColor; -public: - FontInfo(); - FontInfo(byte picFlags, byte picSelect, byte picPick, byte picOnOff, byte fontFlags, - FontJustify justify, int fontSaveBack, const Common::Point &pos, int justifyWidth, - int justifyHeight, const Common::Point &shadow, int foreColor, int backColor, - int shadowColor); -}; - class DrawInfo { public: int _penColor; @@ -106,8 +80,7 @@ public: int _sImageShift; Graphics::Surface _screenSurface; CMapResource *_backColors; - FontInfo *_fontPtr; - FontInfo _defaultFontInfo; + FontInfoResource *_fontPtr; DrawInfo *_drawPtr; DrawInfo _defaultDrawInfo; bool _drawTextPermFlag; |