1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-30 01:49:10 +00:00

(svn r23592) -Fix (r23590): forgot one case

This commit is contained in:
truebrain
2011-12-18 19:39:24 +00:00
parent 7ec12936b5
commit b827694aec

View File

@@ -568,7 +568,7 @@ bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, i
* mess with the automatic font detection */
char buff[256]; // This length is enough to find a suitable replacement font
strecpy(buff, str, lastof(buff));
str_validate(buff, lastof(buff), true, false);
str_validate(buff, lastof(buff), SVS_ALLOW_NEWLINE);
/* Extract a UniChar represenation of the sample string. */
CFStringRef cf_str = CFStringCreateWithCString(kCFAllocatorDefault, buff, kCFStringEncodingUTF8);