Skip to content

Commit

Permalink
Further work on pressing +/- in menu
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Sep 3, 2023
1 parent 5f99329 commit 2694acd
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/m_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3189,11 +3189,17 @@ bool M_Responder(event_t *ev)

if (r_screensize == r_screensize_max)
{
r_screensize = r_screensize_max - 1;
r_hud = false;
C_IntegerCVAROutput(stringize(r_screensize), (r_screensize = r_screensize_max - 1));

if (r_hud)
{
r_hud = false;
C_StringCVAROutput(stringize(r_hud), "off");
}
}

R_SetViewSize(r_screensize + (menuactive && viewactive ? 1 : 0));
R_SetViewSize(r_screensize - 1);

I_RestartGraphics(false);
S_StartSound(NULL, sfx_stnmov);
M_SaveCVARs();
Expand All @@ -3218,7 +3224,7 @@ bool M_Responder(event_t *ev)
vid_widescreen = true;
C_StringCVAROutput(stringize(vid_widescreen), "on");

R_SetViewSize(r_screensize + (menuactive && viewactive ? 1 : 0));
R_SetViewSize(r_screensize + 1);
I_RestartGraphics(false);
S_StartSound(NULL, sfx_stnmov);
M_SaveCVARs();
Expand Down

0 comments on commit 2694acd

Please sign in to comment.