fix highresscale issue on startup in the worst way ever cause CV_NOINIT doesent work for whatever reason

This commit is contained in:
Alug committed 2024-03-28 00:15:55 +01:00
1 parent 847a8cfd81
commit 8486bddaf2
3 files changed
+8 -1

No files matched your search

+2
View File
@@ -1772,6 +1772,8 @@ 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
+4 -1
View File
@@ -50,6 +50,8 @@ 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
// ------------------
@@ -74,7 +76,8 @@ consvar_t cv_highreshudscale = {"highreshudscale", "1", CV_SAVE|CV_FLOAT|CV_CALL
static void Highreshudscale_OnChange(void)
{
SCR_Recalc();
if (hrscale_shit)
SCR_Recalc();
}
static void SCR_ChangeFullscreen (void);
+2
View File
@@ -166,6 +166,8 @@ 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