diff options
author | Einar Johan Trøan Sømåen | 2012-07-26 17:45:32 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-26 17:45:32 +0200 |
commit | f5cbee18f86de7c5c423fc855c8466e6ce01c714 (patch) | |
tree | f6f31e6d8d561b91e18ca2d1c1c09bebb68e31ea /engines/wintermute/base/font/base_font_truetype.h | |
parent | ef11f9d0c53cbdd9d88a99143de6f43f34d7e24d (diff) | |
download | scummvm-rg350-f5cbee18f86de7c5c423fc855c8466e6ce01c714.tar.gz scummvm-rg350-f5cbee18f86de7c5c423fc855c8466e6ce01c714.tar.bz2 scummvm-rg350-f5cbee18f86de7c5c423fc855c8466e6ce01c714.zip |
WINTERMUTE: Remove unused code in BaseFontTTF
Diffstat (limited to 'engines/wintermute/base/font/base_font_truetype.h')
-rw-r--r-- | engines/wintermute/base/font/base_font_truetype.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/engines/wintermute/base/font/base_font_truetype.h b/engines/wintermute/base/font/base_font_truetype.h index f8c5eee74d..434fa7100c 100644 --- a/engines/wintermute/base/font/base_font_truetype.h +++ b/engines/wintermute/base/font/base_font_truetype.h @@ -94,27 +94,6 @@ public: uint32 _color;
};
- //////////////////////////////////////////////////////////////////////////
- class TextLine {
- public:
- TextLine(const WideString &text, int width) {
- _text = text;
- _width = width;
- }
-
- const WideString getText() const {
- return _text;
- }
- int getWidth() const {
- return _width;
- }
- private:
- WideString _text;
- int _width;
- };
- typedef Common::List<TextLine *> TextLineList;
-
-
public:
DECLARE_PERSISTENT(BaseFontTT, BaseFont)
BaseFontTT(BaseGame *inGame);
@@ -138,12 +117,9 @@ public: private:
bool parseLayer(BaseTTFontLayer *layer, byte *buffer);
- void wrapText(const WideString &text, int maxWidth, int maxHeight, TextLineList &lines);
void measureText(const WideString &text, int maxWidth, int maxHeight, int &textWidth, int &textHeight);
BaseSurface *renderTextToTexture(const WideString &text, int width, TTextAlign align, int maxHeight, int &textOffset);
- void blitSurface(Graphics::Surface *src, Graphics::Surface *target, Common::Rect *targetRect);
-
BaseCachedTTFontText *_cachedTexts[NUM_CACHED_TEXTS];
@@ -153,13 +129,7 @@ private: const Graphics::Font *_font;
const Graphics::Font *_fallbackFont;
- float _ascender;
- float _descender;
float _lineHeight;
- float _underlinePos;
- float _pointSize;
- float _vertDpi;
- float _horDpi;
size_t _maxCharWidth;
size_t _maxCharHeight;
|