aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2017-01-25 19:41:53 +0100
committerEugene Sandulenko2017-01-25 19:41:53 +0100
commit797be02eb23a21a2a517cd80ccd220f7deac2ac4 (patch)
tree52d2d78355e5f95494b6dfa50c51440314ce1b41
parent8c854897fd033b328bb0e7c3ed2a3bef9da42ffd (diff)
downloadscummvm-rg350-797be02eb23a21a2a517cd80ccd220f7deac2ac4.tar.gz
scummvm-rg350-797be02eb23a21a2a517cd80ccd220f7deac2ac4.tar.bz2
scummvm-rg350-797be02eb23a21a2a517cd80ccd220f7deac2ac4.zip
GRAPHICS: Fix MacFont association to MacFontFamily
-rw-r--r--graphics/macgui/macfontmanager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/graphics/macgui/macfontmanager.cpp b/graphics/macgui/macfontmanager.cpp
index 20417979ce..4c8b9eb06c 100644
--- a/graphics/macgui/macfontmanager.cpp
+++ b/graphics/macgui/macfontmanager.cpp
@@ -170,10 +170,10 @@ void MacFontManager::loadFonts() {
Common::String familyName = fontFile->getResName(MKTAG('F', 'O', 'N', 'D'), *iterator);
- Graphics::MacFontFamily fontFamily;
- fontFamily.load(*fond);
+ Graphics::MacFontFamily *fontFamily = new MacFontFamily();
+ fontFamily->load(*fond);
- Common::Array<Graphics::MacFontFamily::AsscEntry> *assoc = fontFamily.getAssocTable();
+ Common::Array<Graphics::MacFontFamily::AsscEntry> *assoc = fontFamily->getAssocTable();
for (uint i = 0; i < assoc->size(); i++) {
debug("size: %d style: %d id: %d", (*assoc)[i]._fontSize, (*assoc)[i]._fontStyle,
@@ -195,7 +195,7 @@ void MacFontManager::loadFonts() {
}
font = new Graphics::MacFONTFont;
- font->loadFont(*fontstream);
+ font->loadFont(*fontstream, fontFamily, (*assoc)[i]._fontSize, (*assoc)[i]._fontStyle);
delete fontstream;