Skip to content

Commit

Permalink
GRAPHICS: MACGUI: Added font specifying to MacTextWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Aug 1, 2017
1 parent 645ee64 commit 511b21d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions graphics/macgui/mactextwindow.cpp
Expand Up @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions graphics/macgui/mactextwindow.h
Expand Up @@ -49,6 +49,7 @@ class MacTextWindow : public MacWindow {

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);
Expand Down

0 comments on commit 511b21d

Please sign in to comment.