Fix font problems

This commit is contained in:
nillerusr
2022-01-09 19:20:00 +03:00
parent 8703d8bbf4
commit d651c2b38d
5 changed files with 97 additions and 8 deletions
+3 -3
View File
@@ -1192,7 +1192,7 @@ extern "C" __declspec(DLL_EXPORT) int LauncherMain( HINSTANCE hInstance, HINSTAN
DLL_EXPORT int LauncherMain( int argc, char **argv )
#endif
{
#ifdef LINUX
#if defined LINUX && !defined ANDROID
// Temporary fix to stop us from crashing in printf/sscanf functions that don't expect
// localization to mess with your "." and "," float seperators. Mac OSX also sets LANG
// to en_US.UTF-8 before starting up (in info.plist I believe).
@@ -1208,12 +1208,12 @@ DLL_EXPORT int LauncherMain( int argc, char **argv )
const char *CurrentLocale = setlocale( LC_ALL, NULL );
if ( Q_stricmp( CurrentLocale, en_US ) )
{
Warning( "WARNING: setlocale('%s') failed, using locale:'%s'. International characters may not work.\n", en_US, CurrentLocale );
Msg( "WARNING: setlocale('%s') failed, using locale:'%s'. International characters may not work.\n", en_US, CurrentLocale );
}
#endif // LINUX
#if defined LINUX && defined USE_SDL && defined TOGLES
#if defined LINUX && defined USE_SDL && defined TOGLES && !defined ANDROID
SDL_SetHint(SDL_HINT_VIDEO_X11_FORCE_EGL, "1");
#endif