[Scummvm-git-logs] scummvm master -> ba0f5f68db42e79a9dc0eb32dff6b0a2c235f623
sev-
noreply at scummvm.org
Tue Jan 20 21:40:54 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
ba0f5f68db GRAPHICS: MACGUI: Draw apple symbol using hardcoded font
Commit: ba0f5f68db42e79a9dc0eb32dff6b0a2c235f623
https://github.com/scummvm/scummvm/commit/ba0f5f68db42e79a9dc0eb32dff6b0a2c235f623
Author: tangible-code (shashankvarshney9917 at gmail.com)
Date: 2026-01-20T22:40:29+01:00
Commit Message:
GRAPHICS: MACGUI: Draw apple symbol using hardcoded font
Fixes bug #16257
Changed paths:
graphics/macgui/macmenu.cpp
diff --git a/graphics/macgui/macmenu.cpp b/graphics/macgui/macmenu.cpp
index e761d9432d3..b441d2dc60f 100644
--- a/graphics/macgui/macmenu.cpp
+++ b/graphics/macgui/macmenu.cpp
@@ -1094,8 +1094,20 @@ bool MacMenu::draw(ManagedSurface *g, bool forceRedraw) {
_font->drawString(s, utxt.visual, tx, ty, it->bbox.width(), color, _align, 0, true);
underlineAccelerator(s, _font, utxt, tx + accOff, ty, it->shortcutPos, color);
} else {
- const Font *font = getMenuFont(it->style);
- font->drawString(s, it->text, tx, ty, it->bbox.width(), color, Graphics::kTextAlignLeft, 0, true);
+ const Font *font = nullptr;
+ Common::String text = it->text;
+
+ if (text == "\xf0") {
+ font = _wm->_fontMan->getFont(Graphics::MacFont(kMacFontSymbol, 12, 0));
+
+ if (_wm->_fontMan->hasBuiltInFonts()) // Replace with (c) symbol if we have built-in fonts
+ text = "\xa9";
+
+ } else {
+ font = getMenuFont(it->style);
+ }
+
+ font->drawString(s, text, tx, ty, it->bbox.width(), color, Graphics::kTextAlignLeft, 0, true);
}
if (!it->enabled) {
More information about the Scummvm-git-logs
mailing list