From 72d33df24be13c8f5cc0d781523aab69a7048fa1 Mon Sep 17 00:00:00 2001 From: Patryk Obara Date: Fri, 3 Apr 2020 09:27:28 +0200 Subject: [PATCH] Remove SDL 1.2 SDL_DISABLE_LOCK_KEYS hack Such environment variable is nowhere to be found in SDL2 source code. --- src/gui/sdlmain.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index d3fe7a68..356c0291 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -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("SDL_DISABLE_LOCK_KEYS=1")); if (SDL_Init_Wrapper() < 0) E_Exit("Can't init SDL %s", SDL_GetError()); sdl.inited = true;