diff options
author | Eugene Sandulenko | 2019-10-18 09:27:33 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-10-18 09:27:33 +0200 |
commit | 4d8a0f22f2001447f4790bfcd2041eccda0b723a (patch) | |
tree | 778785256d020b9f985852e636f4da3d20ffe7f3 /graphics/macgui | |
parent | eb72d6b479e8b5b29b1662f9c4711ad2dd7a5c20 (diff) | |
download | scummvm-rg350-4d8a0f22f2001447f4790bfcd2041eccda0b723a.tar.gz scummvm-rg350-4d8a0f22f2001447f4790bfcd2041eccda0b723a.tar.bz2 scummvm-rg350-4d8a0f22f2001447f4790bfcd2041eccda0b723a.zip |
GRAPHICS: MACGUI: Fix compilation without freetype
Diffstat (limited to 'graphics/macgui')
-rw-r--r-- | graphics/macgui/macfontmanager.cpp | 4 |
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()); |