Skip to content

Commit

Permalink
GRAPHICS: MACGUI: Moved Font::setName() method implementation out of …
Browse files Browse the repository at this point in the history
…the header
  • Loading branch information
sev- committed Feb 10, 2020
1 parent 1a99c07 commit 96912ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions graphics/macgui/macfontmanager.cpp
Expand Up @@ -337,6 +337,10 @@ void MacFontManager::clearFontMapping() {
_extraFontIds.clear();
}

void MacFont::setName(const char *name) {
_name = name;
}

const Common::String MacFontManager::getFontName(int id, int size, int slant, bool tryGen) {
Common::String n;

Expand Down
4 changes: 2 additions & 2 deletions graphics/macgui/macfontmanager.h
Expand Up @@ -81,8 +81,8 @@ class MacFont {
int getSize() const { return _size; }
int getSlant() const { return _slant; }
Common::String getName() { return _name; }
void setName(Common::String &name) { _name = name; }
void setName(const char *name) { _name = name; }
void setName(Common::String &name) { setName(name.c_str()); }
void setName(const char *name);
FontManager::FontUsage getFallback() { return _fallback; }
bool isGenerated() { return _generated; }
void setGenerated(bool gen) { _generated = gen; }
Expand Down

0 comments on commit 96912ee

Please sign in to comment.