diff --git a/binaries/system/readme.txt b/binaries/system/readme.txt index a0e06db4e9..335f9ec60a 100644 --- a/binaries/system/readme.txt +++ b/binaries/system/readme.txt @@ -44,7 +44,6 @@ Examples: 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 diff --git a/source/ps/GameSetup/Config.cpp b/source/ps/GameSetup/Config.cpp index 18e9faa23d..c02a8b7f26 100644 --- a/source/ps/GameSetup/Config.cpp +++ b/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_PreferGLSL = false; 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 @@ static void ProcessCommandLineArgs(const CmdLineArgs& args) } } - 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); diff --git a/source/ps/GameSetup/Config.h b/source/ps/GameSetup/Config.h index c7d6d6f4b2..2c1ad09d66 100644 --- a/source/ps/GameSetup/Config.h +++ b/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 @@ extern bool g_PostProc; // 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; diff --git a/source/ps/VideoMode.cpp b/source/ps/VideoMode.cpp index 5cca5fe0d9..cb9288a482 100644 --- a/source/ps/VideoMode.cpp +++ b/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 @@ bool CVideoMode::InitSDL() 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)