diff options
author | rubidium <rubidium@openttd.org> | 2011-11-19 22:27:53 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-19 22:27:53 +0000 |
commit | 5638eaa3073bfec338b45d4b951bfa9ab211d91e (patch) | |
tree | 3e9c6bef35aae971807b8086c7e9a63b3d4afef8 /src/strings.cpp | |
parent | b8866be0939c6b51372f92027d32555ab95b97eb (diff) | |
download | openttd-5638eaa3073bfec338b45d4b951bfa9ab211d91e.tar.xz |
(svn r23270) -Fix (r23267): compile failure without freetype
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 080f57a87..cfa38bf3f 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -1818,9 +1818,11 @@ class LanguagePackGlyphSearcher : public MissingGlyphSearcher { /* virtual */ void SetFontNames(FreeTypeSettings *settings, const char *font_name) { +#ifdef WITH_FREETYPE strecpy(settings->small_font, font_name, lastof(settings->small_font)); strecpy(settings->medium_font, font_name, lastof(settings->medium_font)); strecpy(settings->large_font, font_name, lastof(settings->large_font)); +#endif /* WITH_FREETYPE */ } }; |