1
0
Fork 0

Remove SDL 1.2 SDL_DISABLE_LOCK_KEYS hack

Such environment variable is nowhere to be found in SDL2 source code.
This commit is contained in:
Patryk Obara 2020-04-03 09:27:28 +02:00 committed by Patryk Obara
parent 3aadf84a00
commit 72d33df24b

View file

@ -2781,12 +2781,6 @@ int main(int argc, char* argv[]) {
LOG_MSG("Copyright 2002-2020 DOSBox Team, published under GNU GPL.");
LOG_MSG("---");
/* Init SDL */
/* Or debian/ubuntu with older libsdl version as they have done this themselves, but then differently.
* with this variable they will work correctly. I've only tested the 1.2.14 behaviour against the windows version
* of libsdl
*/
putenv(const_cast<char*>("SDL_DISABLE_LOCK_KEYS=1"));
if (SDL_Init_Wrapper() < 0)
E_Exit("Can't init SDL %s", SDL_GetError());
sdl.inited = true;