aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui/mactext.h
diff options
context:
space:
mode:
authorEugene Sandulenko2016-12-14 20:09:08 +0100
committerEugene Sandulenko2016-12-14 20:10:32 +0100
commit6329f73c9ee3b30e04da89b7ac0b98c581e72c0c (patch)
treef80d3872bf3e9b723743ecfc8ca42d054daf3303 /graphics/macgui/mactext.h
parentaecc17e5a5726206c39f7f2a773788f64c103b1e (diff)
downloadscummvm-rg350-6329f73c9ee3b30e04da89b7ac0b98c581e72c0c.tar.gz
scummvm-rg350-6329f73c9ee3b30e04da89b7ac0b98c581e72c0c.tar.bz2
scummvm-rg350-6329f73c9ee3b30e04da89b7ac0b98c581e72c0c.zip
GRAPHICS: Implemented basic rendering for MacText
Diffstat (limited to 'graphics/macgui/mactext.h')
-rw-r--r--graphics/macgui/mactext.h8
1 files changed, 7 insertions, 1 deletions
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<int> _widths;
int _textMaxWidth;
+
+ Graphics::ManagedSurface _surface;
+ bool _fullRefresh;
};
} // End of namespace Graphics