summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-11-24 18:59:53 +0000
committerglx <glx@openttd.org>2008-11-24 18:59:53 +0000
commit68d399d0aecb0dbc7a27fe11c12336cca6c2cdb3 (patch)
tree8d968529d4b67aee095d2bb9a242d77d409f6779 /src
parent730a3d47723f633aacb1975cc796f0f782789b3a (diff)
downloadopenttd-68d399d0aecb0dbc7a27fe11c12336cca6c2cdb3.tar.xz
(svn r14620) -Fix (r14618): missing lines broke compilation on windows
Diffstat (limited to 'src')
-rw-r--r--src/fontcache.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp
index b35458046..8a836c6cb 100644
--- a/src/fontcache.cpp
+++ b/src/fontcache.cpp
@@ -187,6 +187,9 @@ static int CALLBACK EnumFontCallback(const ENUMLOGFONTEX *logfont, const NEWTEXT
if ((fs.fsCsb[0] & info->locale.lsCsbSupported[0]) == 0 && (fs.fsCsb[1] & info->locale.lsCsbSupported[1]) == 0) return 1;
}
+ const char *font_name = WIDE_TO_MB((const TCHAR*)logfont->elfFullName);
+ DEBUG(freetype, 1, "Fallback font: %s", font_name);
+
strecpy(info->settings->small_font, font_name, lastof(info->settings->small_font));
strecpy(info->settings->medium_font, font_name, lastof(info->settings->medium_font));
strecpy(info->settings->large_font, font_name, lastof(info->settings->large_font));