From 169ffe1d6d06ea3b1342ea3ba9bd055abbf1d2a2 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 4 Jul 2021 11:25:52 +0200 Subject: [PATCH] fixed the commandline options -o0 and -f0 (disabling OpenGL and fullscreen) --- config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.cpp b/config.cpp index 7368ad9e..f91e60dd 100644 --- a/config.cpp +++ b/config.cpp @@ -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;