diff options
author | Eugene Sandulenko | 2017-01-31 23:14:03 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-01-31 23:14:37 +0100 |
commit | d4e4a20cc53b28db31a66af3fd5d4b7569fad3c8 (patch) | |
tree | 997432834a67f94be116c99c7c91bdeb605c897e /graphics/macgui/mactext.h | |
parent | c15e063bbd549261e6be020cdd046e7368d22769 (diff) | |
download | scummvm-rg350-d4e4a20cc53b28db31a66af3fd5d4b7569fad3c8.tar.gz scummvm-rg350-d4e4a20cc53b28db31a66af3fd5d4b7569fad3c8.tar.bz2 scummvm-rg350-d4e4a20cc53b28db31a66af3fd5d4b7569fad3c8.zip |
GRAPHICS: Implement rendering of rich MacText
Diffstat (limited to 'graphics/macgui/mactext.h')
-rw-r--r-- | graphics/macgui/mactext.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/graphics/macgui/mactext.h b/graphics/macgui/mactext.h index f94b2bc6ff..90f85e6b22 100644 --- a/graphics/macgui/mactext.h +++ b/graphics/macgui/mactext.h @@ -76,11 +76,13 @@ struct MacFontRun { struct MacTextLine { int width; int height; + int y; Common::Array<MacFontRun> chunks; MacTextLine() { width = height = -1; + y = 0; } }; @@ -101,8 +103,10 @@ public: private: void splitString(Common::String &s); void render(int from, int to); - void calcMaxWidth(); + void recalcDims(); void reallocSurface(); + int getLineWidth(int line); + int getLineHeight(int line); private: MacWindowManager *_wm; @@ -117,6 +121,7 @@ private: Common::Array<Common::String> _text; int _textMaxWidth; + int _textMaxHeight; Graphics::ManagedSurface *_surface; bool _fullRefresh; |