- more hw_cvars cleanup.

Copied several range checks from Raze, moved vid_gamma to hw_cvars.cpp and removed some old and no longer necessary gamma setup code.
This commit is contained in:
Christoph Oelckers 2020-04-26 10:58:44 +02:00
commit 61c94c25ed
4 changed files with 39 additions and 51 deletions

View file

@ -347,7 +347,6 @@ bool IVideo::SetResolution ()
screen = buff;
screen->InitializeState();
screen->SetGamma();
V_UpdateModeSize(screen->GetWidth(), screen->GetHeight());
@ -423,7 +422,6 @@ void V_Init2()
menu_resolution_custom_height = SCREENHEIGHT;
screen->SetVSync(vid_vsync);
screen->SetGamma ();
FBaseCVar::ResetColors ();
C_NewModeAdjust();
setsizeneeded = true;