aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorEugene Sandulenko2017-07-30 09:57:11 +0200
committerEugene Sandulenko2017-08-01 10:42:21 +0200
commit511b21d3cfa78c42c16921907e724d5e3789e7b3 (patch)
tree01e2591af7b88a90d620c32c882d9bd8e1c969c5 /graphics
parent645ee64da0f837245443842d53621e8fd5ac924f (diff)
downloadscummvm-rg350-511b21d3cfa78c42c16921907e724d5e3789e7b3.tar.gz
scummvm-rg350-511b21d3cfa78c42c16921907e724d5e3789e7b3.tar.bz2
scummvm-rg350-511b21d3cfa78c42c16921907e724d5e3789e7b3.zip
GRAPHICS: MACGUI: Added font specifying to MacTextWindow
Diffstat (limited to 'graphics')
-rw-r--r--graphics/macgui/mactextwindow.cpp6
-rw-r--r--graphics/macgui/mactextwindow.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/graphics/macgui/mactextwindow.cpp b/graphics/macgui/mactextwindow.cpp
index e3e2f16acb..9373751734 100644
--- a/graphics/macgui/mactextwindow.cpp
+++ b/graphics/macgui/mactextwindow.cpp
@@ -65,6 +65,12 @@ void MacTextWindow::setSelection(int selStartX, int selStartY, int selEndX, int
MacTextWindow::~MacTextWindow() {
}
+void MacTextWindow::setTextWindowFont(const MacFont *font) {
+ _font = font;
+
+ _fontRef = _wm->_fontMan->getFont(*font);
+}
+
const MacFont *MacTextWindow::getTextWindowFont() {
return _font;
}
diff --git a/graphics/macgui/mactextwindow.h b/graphics/macgui/mactextwindow.h
index dcefa005f2..802d02b717 100644
--- a/graphics/macgui/mactextwindow.h
+++ b/graphics/macgui/mactextwindow.h
@@ -49,6 +49,7 @@ public:
virtual bool processEvent(Common::Event &event);
+ void setTextWindowFont(const MacFont *macFont);
const MacFont *getTextWindowFont();
void drawText(ManagedSurface *g, int x, int y, int w, int h, int xoff, int yoff);