Skip to content
Permalink
Browse files

ui: fixed windowed mode set without border, refs #1186

  • Loading branch information
rmarquis committed Mar 23, 2020
1 parent f97a4ef commit f9ea18b4afcaa0d21398a3736743b2469e8d0fa7
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/ui/ui_main.c
@@ -4342,18 +4342,19 @@ void UI_GLCustom()

switch (ui_r_windowmode)
{
case 1:
case 1: // fullscreen
DC->setCVar("ui_r_fullscreen", "1");
DC->setCVar("ui_r_noborder", "0");
break;
case 2:
case 2: // windowed fullscreen
DC->setCVar("ui_r_fullscreen", "0");
DC->setCVar("ui_r_mode", "-2");
DC->setCVar("ui_r_noborder", "1");
break;
case 0:
case 0: // windowed
default:
DC->setCVar("ui_r_fullscreen", "0");
DC->setCVar("ui_r_noborder", "0");
break;
}

0 comments on commit f9ea18b

Please sign in to comment.
You can’t perform that action at this time.