Skip to content

Commit

Permalink
ui: fixed windowed mode set without border, refs #1186
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarquis committed Mar 23, 2020
1 parent f97a4ef commit f9ea18b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ui/ui_main.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit f9ea18b

Please sign in to comment.