mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-19 02:38:32 +00:00
GRAPHICS: MACGUI: Fix registering font to preferred ID
This commit is contained in:
parent
ce7cdd11b8
commit
40c8ab4724
@ -542,7 +542,7 @@ int MacFontManager::registerFontName(Common::String name, int preferredId) {
|
||||
return _fontIds[name];
|
||||
|
||||
int id;
|
||||
if (preferredId > -1 && !_fontInfo.contains(id)) {
|
||||
if (preferredId > -1 && !_fontInfo.contains(preferredId)) {
|
||||
id = preferredId;
|
||||
} else {
|
||||
// Preferred ID is already registered, find an unused one.
|
||||
|
Loading…
x
Reference in New Issue
Block a user