Index: ps/trunk/binaries/system/readme.txt =================================================================== --- ps/trunk/binaries/system/readme.txt +++ ps/trunk/binaries/system/readme.txt @@ -44,7 +44,6 @@ Configuration: -conf=KEY:VALUE set a config value --g=F set the gamma correction to 'F' (default 1.0) -nosound disable audio -noUserMod disable loading of the user mod -shadows enable shadows Index: ps/trunk/source/ps/GameSetup/Config.h =================================================================== --- ps/trunk/source/ps/GameSetup/Config.h +++ ps/trunk/source/ps/GameSetup/Config.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2019 Wildfire Games. +/* Copyright (C) 2020 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -78,7 +78,6 @@ // Use smooth LOS interpolation extern bool g_SmoothLOS; -extern float g_Gamma; // name of configured render path (depending on OpenGL extensions, this may not be // the render path that is actually in use right now) extern CStr g_RenderPath; Index: ps/trunk/source/ps/GameSetup/Config.cpp =================================================================== --- ps/trunk/source/ps/GameSetup/Config.cpp +++ ps/trunk/source/ps/GameSetup/Config.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2019 Wildfire Games. +/* Copyright (C) 2020 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -56,8 +56,6 @@ bool g_PostProc = false; bool g_SmoothLOS = false; -float g_Gamma = 1.0f; - CStr g_RenderPath = "default"; int g_xres, g_yres; @@ -131,13 +129,6 @@ } } - if (args.Has("g")) - { - g_Gamma = args.Get("g").ToFloat(); - if (g_Gamma == 0.0f) - g_Gamma = 1.0f; - } - // if (args.Has("listfiles")) // trace_enable(true); Index: ps/trunk/source/ps/VideoMode.cpp =================================================================== --- ps/trunk/source/ps/VideoMode.cpp +++ ps/trunk/source/ps/VideoMode.cpp @@ -1,4 +1,4 @@ -/* Copyright (C) 2018 Wildfire Games. +/* Copyright (C) 2020 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -242,13 +242,6 @@ ogl_Init(); // required after each mode change // (TODO: does that mean we need to call this when toggling fullscreen later?) -#if !OS_ANDROID - u16 ramp[256]; - SDL_CalculateGammaRamp(g_Gamma, ramp); - if (SDL_SetWindowGammaRamp(m_Window, ramp, ramp, ramp) < 0) - LOGWARNING("SDL_SetWindowGammaRamp failed"); -#endif - m_IsInitialised = true; if (!m_ConfigFullscreen)