mirror of https://github.com/OpenTTD/OpenTTD
(svn r23592) -Fix (r23590): forgot one case
parent
7ec12936b5
commit
b827694aec
|
@ -568,7 +568,7 @@ bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, i
|
||||||
* mess with the automatic font detection */
|
* mess with the automatic font detection */
|
||||||
char buff[256]; // This length is enough to find a suitable replacement font
|
char buff[256]; // This length is enough to find a suitable replacement font
|
||||||
strecpy(buff, str, lastof(buff));
|
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. */
|
/* Extract a UniChar represenation of the sample string. */
|
||||||
CFStringRef cf_str = CFStringCreateWithCString(kCFAllocatorDefault, buff, kCFStringEncodingUTF8);
|
CFStringRef cf_str = CFStringCreateWithCString(kCFAllocatorDefault, buff, kCFStringEncodingUTF8);
|
||||||
|
|
Loading…
Reference in New Issue