aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorFrank Richter2017-06-09 17:03:50 +0200
committerEugene Sandulenko2017-08-01 08:55:48 +0200
commit0f93962ef4bc43827f878d31a2c0ae3b868276f6 (patch)
treeabb67b730a0013a305ce9bc21b125d05f8b383fc /backends/platform
parent62ab06645788ef5b99264033382001245648fbbe (diff)
downloadscummvm-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.
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/sdl/sdl.cpp2
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) {