- set resolution selector to auto detected resolution at startup, remove the entries from the config file

- committing a change for fullscreen sets scaling to 1.0 to guarantee the selected number of pixels are actually used
This commit is contained in:
Rachael Alexanderson 2019-01-20 02:45:35 -05:00 committed by Christoph Oelckers
commit 45d94ee993
2 changed files with 9 additions and 2 deletions

View file

@ -68,6 +68,8 @@
#include "version.h"
EXTERN_CVAR(Bool, cl_capfps)
EXTERN_CVAR(Int, menu_resolution_custom_width)
EXTERN_CVAR(Int, menu_resolution_custom_height)
CVAR(Int, win_x, -1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
CVAR(Int, win_y, -1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
@ -740,6 +742,10 @@ void V_Init2()
Video->SetResolution(); // this only fails via exceptions.
Printf ("Resolution: %d x %d\n", SCREENWIDTH, SCREENHEIGHT);
// init these for the scaling menu
menu_resolution_custom_width = SCREENWIDTH;
menu_resolution_custom_height = SCREENHEIGHT;
screen->SetGamma ();
FBaseCVar::ResetColors ();
C_NewModeAdjust();