mirror of https://github.com/OpenTTD/OpenTTD.git
Fix: Wrong font name for LoadWin32Font.
This commit is contained in:
parent
eb79f691db
commit
9be9bb0b6b
|
@ -399,8 +399,8 @@ void LoadWin32Font(FontSize fs)
|
|||
logfont = *(const LOGFONT *)settings->os_handle;
|
||||
} else if (strchr(font_name, '.') != nullptr) {
|
||||
/* Might be a font file name, try load it. */
|
||||
if (!TryLoadFontFromFile(settings->font, logfont)) {
|
||||
ShowInfo("Unable to load file '{}' for {} font, using default windows font selection instead", font_name, FontSizeToName(fs));
|
||||
if (!TryLoadFontFromFile(font, logfont)) {
|
||||
ShowInfo("Unable to load file '{}' for {} font, using default windows font selection instead", font, FontSizeToName(fs));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue