From 6329f73c9ee3b30e04da89b7ac0b98c581e72c0c Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 14 Dec 2016 20:09:08 +0100 Subject: GRAPHICS: Implemented basic rendering for MacText --- graphics/macgui/mactext.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'graphics/macgui/mactext.h') diff --git a/graphics/macgui/mactext.h b/graphics/macgui/mactext.h index 6f49133d57..cf975849b7 100644 --- a/graphics/macgui/mactext.h +++ b/graphics/macgui/mactext.h @@ -24,12 +24,13 @@ #define GRAPHICS_MACGUI_MACTEXT_H #include "graphics/fontman.h" +#include "graphics/managed_surface.h" namespace Graphics { class MacText { public: - MacText(Common::String s, Graphics::Font *font, int maxWidth = -1); + MacText(Common::String s, Graphics::Font *font, int fgcolor, int bgcolor, int maxWidth = -1); void setInterLinear(int interLinear) { _interLinear = interLinear; } @@ -41,6 +42,8 @@ private: private: Common::String _str; Graphics::Font *_font; + int _fgcolor, _bgcolor; + int _maxWidth; int _interLinear; @@ -48,6 +51,9 @@ private: Common::Array _widths; int _textMaxWidth; + + Graphics::ManagedSurface _surface; + bool _fullRefresh; }; } // End of namespace Graphics -- cgit v1.2.3