fixed the commandline options -o0 and -f0 (disabling OpenGL and fullscreen)

This commit is contained in:
Zeno Rogue 2021-07-04 11:25:52 +02:00
parent e37fa65247
commit 169ffe1d6d
1 changed files with 2 additions and 2 deletions

View File

@ -3099,8 +3099,8 @@ EX int read_config_args() {
else if(argis("-msens")) {
PHASEFROM(2); shift_arg_formula(mouseaim_sensitivity);
}
TOGGLE('o', vid.usingGL, apply_screen_settings())
TOGGLE('f', vid.want_fullscreen, apply_screen_settings())
TOGGLE('o', vid.wantGL, { vid.wantGL = !vid.wantGL; apply_screen_settings();})
TOGGLE('f', vid.want_fullscreen, { vid.want_fullscreen = !vid.want_fullscreen; apply_screen_settings(); })
else if(argis("-noshaders")) {
PHASE(1);
glhr::noshaders = true;