From 6100de0b3a0f869b0dc94b5f961c60206b264bf1 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 17 Oct 2019 01:42:44 +0200 Subject: GRAPHICS: MACGUI: Add possibility to set WM mode right away This lets us to not load mac fonts when the built-in mode in enforced --- graphics/macgui/macwindowmanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'graphics/macgui/macwindowmanager.cpp') diff --git a/graphics/macgui/macwindowmanager.cpp b/graphics/macgui/macwindowmanager.cpp index 62d3710157..338be38050 100644 --- a/graphics/macgui/macwindowmanager.cpp +++ b/graphics/macgui/macwindowmanager.cpp @@ -147,14 +147,14 @@ static const byte macCursorCrossBar[] = { static void menuTimerHandler(void *refCon); -MacWindowManager::MacWindowManager() { +MacWindowManager::MacWindowManager(uint32 mode) { _screen = 0; _screenCopy = 0; _lastId = 0; _activeWindow = -1; _needsRemoval = false; - _mode = kWMModeNone; + _mode = mode; _menu = 0; _menuDelay = 0; @@ -175,7 +175,7 @@ MacWindowManager::MacWindowManager() { g_system->getPaletteManager()->setPalette(palette, 0, ARRAYSIZE(palette) / 3); - _fontMan = new MacFontManager(); + _fontMan = new MacFontManager(mode); CursorMan.replaceCursorPalette(palette, 0, ARRAYSIZE(palette) / 3); CursorMan.replaceCursor(macCursorArrow, 11, 16, 1, 1, 3); -- cgit v1.2.3