From 2694acdb50f77634d5b85ef6e1142b0232834a83 Mon Sep 17 00:00:00 2001 From: Brad Harding Date: Sun, 3 Sep 2023 16:47:14 +1000 Subject: [PATCH] Further work on pressing +/- in menu --- src/m_menu.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/m_menu.c b/src/m_menu.c index 1b7916256d..3ed0817d03 100644 --- a/src/m_menu.c +++ b/src/m_menu.c @@ -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(); @@ -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();