diff options
author | Frank Richter | 2017-06-09 17:03:50 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-08-01 08:55:48 +0200 |
commit | 0f93962ef4bc43827f878d31a2c0ae3b868276f6 (patch) | |
tree | abb67b730a0013a305ce9bc21b125d05f8b383fc | |
parent | 62ab06645788ef5b99264033382001245648fbbe (diff) | |
download | scummvm-rg350-0f93962ef4bc43827f878d31a2c0ae3b868276f6.tar.gz scummvm-rg350-0f93962ef4bc43827f878d31a2c0ae3b868276f6.tar.bz2 scummvm-rg350-0f93962ef4bc43827f878d31a2c0ae3b868276f6.zip |
Windows: Use GetUserDefaultUILanguage() instead of GetThreadLocale().
The thread locale concerns display options (e.g. date formatting) not
the display language. There are typically, but not necessarily the same,
as Windows allows them to be configured separately.
-rw-r--r-- | backends/platform/sdl/sdl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index 9a5db7f110..bbd5c89f80 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -432,7 +432,7 @@ Common::String OSystem_SDL::getSystemLanguage() const { char langName[9]; char ctryName[9]; - const LCID languageIdentifier = GetThreadLocale(); + const LCID languageIdentifier = GetUserDefaultUILanguage(); if (GetLocaleInfo(languageIdentifier, LOCALE_SISO639LANGNAME, langName, sizeof(langName)) != 0 && GetLocaleInfo(languageIdentifier, LOCALE_SISO3166CTRYNAME, ctryName, sizeof(ctryName)) != 0) { |