diff options
author | Eugene Sandulenko | 2017-07-30 09:57:11 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-08-01 10:42:21 +0200 |
commit | 511b21d3cfa78c42c16921907e724d5e3789e7b3 (patch) | |
tree | 01e2591af7b88a90d620c32c882d9bd8e1c969c5 /graphics | |
parent | 645ee64da0f837245443842d53621e8fd5ac924f (diff) | |
download | scummvm-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.cpp | 6 | ||||
-rw-r--r-- | graphics/macgui/mactextwindow.h | 1 |
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); |