]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
get rid of menu_cmd setresolution and setcompression, just use menu_cmd sync for...
authorRudolf Polzer <divverent@xonotic.org>
Sun, 16 Oct 2011 12:15:53 +0000 (14:15 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 16 Oct 2011 12:15:53 +0000 (14:15 +0200)
qcsrc/menu/gamecommand.qc
qcsrc/menu/xonotic/dialog_settings_video.c

index f3d780b6f55fe7edf13e8e18129b44199b110a6a..7b8425c5bd04ada78d50d5c178a7325b09651be5 100644 (file)
@@ -74,8 +74,9 @@ void GameCommand(string theCommand)
 
        if(argv(0) == "sync")
        {
-               loadAllCvars(main);
                updateCompression();
+               updateConwidths();
+               loadAllCvars(main);
                return;
        }
 
@@ -119,18 +120,6 @@ void GameCommand(string theCommand)
                return;
        }
 
-       if(argv(0) == "setresolution")
-       {
-               updateConwidths();
-               return;
-       }
-
-       if(argv(0) == "setcompression")
-       {
-               updateCompression();
-               return;
-       }
-
        if(argv(0) == "curl")
        {
                float do_exec;
index b1907b604c6f3dc09ed0783e13ef1110265c3e19..770811ec1e8424a5c92d6ad8798d5676983e6ab4 100644 (file)
@@ -106,6 +106,6 @@ void XonoticVideoSettingsTab_fill(entity me)
                me.TD(me, 1, 2, e = makeXonoticSlider(0.5, 2.0, 0.05, "r_hdr_scenebrightness"));
 
        me.gotoRC(me, me.rows - 1, 0);
-               me.TD(me, 1, me.columns, makeXonoticCommandButton(_("Apply immediately"), '0 0 0', "menu_cmd setresolution; vid_restart; menu_restart; togglemenu; defer 0.1 \"menu_cmd videosettings\"", COMMANDBUTTON_APPLY));
+               me.TD(me, 1, me.columns, makeXonoticCommandButton(_("Apply immediately"), '0 0 0', "menu_cmd sync; vid_restart; menu_restart; togglemenu; defer 0.1 \"menu_cmd videosettings\"", COMMANDBUTTON_APPLY));
 }
 #endif