diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-01-04 15:20:34 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-02-13 20:09:14 +0100 |
commit | 2b0200d4297a67916cf3b955adc474e88e327cf0 (patch) | |
tree | c94614a1659bc0f5213a15aae3add3588ec17ab1 /src/fontdetection.cpp | |
parent | 84636fc2af4dfc77b43479909273ebadb4f9b7cb (diff) | |
download | openttd-2b0200d4297a67916cf3b955adc474e88e327cf0.tar.xz |
Codechange: OS-specific data for font search is not used outside of searching.
Diffstat (limited to 'src/fontdetection.cpp')
-rw-r--r-- | src/fontdetection.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/fontdetection.cpp b/src/fontdetection.cpp index 570e1aa06..dfb27a35d 100644 --- a/src/fontdetection.cpp +++ b/src/fontdetection.cpp @@ -344,9 +344,7 @@ static int CALLBACK EnumFontCallback(const ENUMLOGFONTEX *logfont, const NEWTEXT const char *english_name = font_name; #endif /* WITH_FREETYPE */ - PLOGFONT os_data = MallocT<LOGFONT>(1); - *os_data = logfont->elfLogFont; - info->callback->SetFontNames(info->settings, font_name, os_data); + info->callback->SetFontNames(info->settings, font_name, &logfont->elfLogFont); if (info->callback->FindMissingGlyphs()) return 1; DEBUG(freetype, 1, "Fallback font: %s (%s)", font_name, english_name); return 0; // stop enumerating |