Ozkan Sezer
a19c008a7f
use GetModuleHandleW() to retrieve kernel32.dll handle (bug #5390.)
...
SDL_systhread.c and SDL_syslocale.c used to call LoadLibrary() without
calling FreeLibrary() later. GetModuleHandleW() should always succeed
because GetModuleHandleW() itself is imported from kernel32.dll and we
don't need to bother releasing it.
2020-12-22 17:10:02 +03:00
Sam Lantinga
cb36189692
Fixed bug 5235 - All internal sources should include SDL_assert.h
...
Ryan C. Gordon
We should really stick this in SDL_internal.h or something so it's always available.
2020-12-09 07:16:22 -08:00
Ozkan Sezer
1f4b5d54ca
windows/SDL_syslocale.c: make it build against older SDKs.
2020-10-06 00:20:20 +03:00
Ryan C. Gordon
600a2fc7c3
locale: Removed unused variable.
2020-05-21 04:01:37 -04:00
Ryan C. Gordon
ba11122ea0
locale: Fixed compiler warning on Visual Studio.
2020-05-21 03:48:56 -04:00
Ryan C. Gordon
fa23e3d00b
locale: Implemented SDL_GetPreferredLocales().
...
This was something I proposed a long time ago, Sylvain Becker did
additional work on it, then back to me.
Fixes Bugzilla #2131 .
2020-05-04 02:27:29 -04:00