From ca1302475ed8d9e9421f0c7cb2afb3a0dd75e80f Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 28 Mar 2024 08:13:16 +0100 Subject: [PATCH] use this instead --- src/d_main.c | 2 -- src/screen.c | 4 +--- src/screen.h | 2 -- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/d_main.c b/src/d_main.c index ad4c3745f..34b940494 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -1772,8 +1772,6 @@ void D_SRB2Main(void) COM_ImmedExecute(va("exec \"%s"PATHSEP"kartserv.cfg\"\n", srb2home)); else COM_ImmedExecute(va("exec \"%s"PATHSEP"kartexec.cfg\" -noerror\n", srb2home)); - - hrscale_shit = 1; if (!autostart) M_PushSpecialParameters(); // push all "+" parameters at the command buffer diff --git a/src/screen.c b/src/screen.c index 29f0ba9a5..e5c1ebff4 100644 --- a/src/screen.c +++ b/src/screen.c @@ -50,8 +50,6 @@ void (*transtransfunc)(void); // translucent translated column drawer void (*twosmultipatchfunc)(void); // for cols with transparent pixels void (*twosmultipatchtransfunc)(void); // for cols with transparent pixels AND translucency -int hrscale_shit = 0; - // ------------------ // global video state // ------------------ @@ -76,7 +74,7 @@ consvar_t cv_highreshudscale = {"highreshudscale", "1", CV_SAVE|CV_FLOAT|CV_CALL static void Highreshudscale_OnChange(void) { - if (hrscale_shit) + if (!con_startup) SCR_Recalc(); } diff --git a/src/screen.h b/src/screen.h index a9e090fc1..a6a0eb477 100644 --- a/src/screen.h +++ b/src/screen.h @@ -166,8 +166,6 @@ void SCR_Startup (void); void SCR_CalculateFPS(void); -extern int hrscale_shit; - FUNCMATH boolean SCR_IsAspectCorrect(INT32 width, INT32 height); // move out to main code for consistency