[Scummvm-git-logs] scummvm master -> 968f594531d7431ada6c56ff3f9f34bd6f3f7cd7

sev- noreply at scummvm.org
Sat Mar 15 03:41:42 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
968f594531 GRAPHICS: MACGUI: Truly use cached fonts in MacFontManager


Commit: 968f594531d7431ada6c56ff3f9f34bd6f3f7cd7
    https://github.com/scummvm/scummvm/commit/968f594531d7431ada6c56ff3f9f34bd6f3f7cd7
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2025-03-15T11:11:59+08:00

Commit Message:
GRAPHICS: MACGUI: Truly use cached fonts in MacFontManager

This fixes text in trektech

Changed paths:
    graphics/macgui/macfontmanager.cpp


diff --git a/graphics/macgui/macfontmanager.cpp b/graphics/macgui/macfontmanager.cpp
index 13740b5bb75..d2e6ee5b3d6 100644
--- a/graphics/macgui/macfontmanager.cpp
+++ b/graphics/macgui/macfontmanager.cpp
@@ -503,6 +503,9 @@ const Font *MacFontManager::getFont(MacFont *macFont) {
 			macFont->setName(name);
 		}
 
+		if (_fontRegistry.contains(macFont->getName()))
+			return _fontRegistry[macFont->getName()]->getFont();
+
 		if (!_fontRegistry.contains(macFont->getName())) {
 			int id = macFont->getId();
 




More information about the Scummvm-git-logs mailing list