From d7e00a9f87366f7d272ac467751da4417eb78d70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Andersson?= Date: Sun, 3 Mar 2024 19:48:01 +0100 Subject: [PATCH] SCUMM: No longer register the Indy and Loom fonts With the recent change to the Mac font manager, the font is registered when it's loaded. All we need is the correct ID, because we don't want to hard code that. --- engines/scumm/macgui/macgui_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/scumm/macgui/macgui_impl.cpp b/engines/scumm/macgui/macgui_impl.cpp index fc94f03e9e6..bef2520f1f7 100644 --- a/engines/scumm/macgui/macgui_impl.cpp +++ b/engines/scumm/macgui/macgui_impl.cpp @@ -233,7 +233,7 @@ void MacGuiImpl::initialize() { for (uint i = 0; i < fontFamilies.size(); i++) { if (fontFamilies[i]->getName() == fontFamily) { - _gameFontId = _windowManager->_fontMan->registerFontName(fontFamily, fontFamilies[i]->getFontFamilyId()); + _gameFontId = fontFamilies[i]->getFontFamilyId(); break; } }