aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2019-10-18 09:27:33 +0200
committerEugene Sandulenko2019-10-18 09:27:33 +0200
commit4d8a0f22f2001447f4790bfcd2041eccda0b723a (patch)
tree778785256d020b9f985852e636f4da3d20ffe7f3
parenteb72d6b479e8b5b29b1662f9c4711ad2dd7a5c20 (diff)
downloadscummvm-rg350-4d8a0f22f2001447f4790bfcd2041eccda0b723a.tar.gz
scummvm-rg350-4d8a0f22f2001447f4790bfcd2041eccda0b723a.tar.bz2
scummvm-rg350-4d8a0f22f2001447f4790bfcd2041eccda0b723a.zip
GRAPHICS: MACGUI: Fix compilation without freetype
-rw-r--r--graphics/macgui/macfontmanager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/graphics/macgui/macfontmanager.cpp b/graphics/macgui/macfontmanager.cpp
index 4faafa4054..259fd157eb 100644
--- a/graphics/macgui/macfontmanager.cpp
+++ b/graphics/macgui/macfontmanager.cpp
@@ -284,11 +284,13 @@ const Font *MacFontManager::getFont(MacFont macFont) {
}
}
- if (_builtInFonts || !font) {
+#ifdef USE_FREETYPE2
+ if (!font) {
if (_mode & kWMModeUnicode) {
font = Graphics::loadTTFFontFromArchive("FreeSans.ttf", 16, Graphics::kTTFSizeModeCell, 0, Graphics::kTTFRenderModeMonochrome);
}
}
+#endif
if (!font)
font = FontMan.getFontByUsage(macFont.getFallback());