diff options
Diffstat (limited to 'graphics/macgui/mactext.h')
-rw-r--r-- | graphics/macgui/mactext.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/graphics/macgui/mactext.h b/graphics/macgui/mactext.h index 7234cdcdaf..f94b2bc6ff 100644 --- a/graphics/macgui/mactext.h +++ b/graphics/macgui/mactext.h @@ -73,6 +73,17 @@ struct MacFontRun { const Font *getFont(); }; +struct MacTextLine { + int width; + int height; + + Common::Array<MacFontRun> chunks; + + MacTextLine() { + width = height = -1; + } +}; + class MacText { public: MacText(Common::String s, MacWindowManager *wm, const Graphics::Font *font, int fgcolor, int bgcolor, @@ -112,7 +123,7 @@ private: TextAlign _textAlignment; - Common::Array< Common::Array<MacFontRun> > _textLines; + Common::Array<MacTextLine> _textLines; MacFontRun _defaultFormatting; MacFontRun _currentFormatting; }; |