summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-11-24 20:10:39 +0000
committerglx <glx@openttd.org>2008-11-24 20:10:39 +0000
commitb7c6872903a69107c9af05566b6ed3609e11cd31 (patch)
tree3dc9426557cfea2b8c67ae1ffc11da61b457fca0 /src
parentf7f89d63b2b313968771fa5baea6ef690a8c998c (diff)
downloadopenttd-b7c6872903a69107c9af05566b6ed3609e11cd31.tar.xz
(svn r14622) -Fix (r14618): win9x compilation
Diffstat (limited to 'src')
-rw-r--r--src/fontcache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp
index cdb7dafd6..d76172a2e 100644
--- a/src/fontcache.cpp
+++ b/src/fontcache.cpp
@@ -199,7 +199,7 @@ static int CALLBACK EnumFontCallback(const ENUMLOGFONTEX *logfont, const NEWTEXT
bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, int winlangid)
{
EFCParam langInfo;
- if (GetLocaleInfo(MAKELCID(winlangid, SORT_DEFAULT), LOCALE_FONTSIGNATURE, (LPWSTR)&langInfo.locale, sizeof(langInfo.locale) / sizeof(TCHAR)) == 0) {
+ if (GetLocaleInfo(MAKELCID(winlangid, SORT_DEFAULT), LOCALE_FONTSIGNATURE, (LPTSTR)&langInfo.locale, sizeof(langInfo.locale) / sizeof(TCHAR)) == 0) {
/* Invalid langid or some other mysterious error, can't determine fallback font. */
DEBUG(freetype, 1, "Can't get locale info for fallback font (langid=0x%x)", winlangid);
return false;