- add support for the (as of now) newest version of the Unity re-releases

This commit is contained in:
Rachael Alexanderson 2020-09-03 23:36:19 -04:00
commit 0204051381
6 changed files with 30 additions and 2 deletions

View file

@ -2962,6 +2962,18 @@ static void CheckForHacks(BuildInfo& buildinfo)
}
}
static void FixUnityStatusBar()
{
if (gameinfo.flags & GI_ALWAYSCENTERSBAR)
{
FGameTexture* sbartex = TexMan.FindGameTexture("stbar", ETextureType::MiscPatch);
if (!sbartex)
return;
sbartex->SetOffsets(0, (sbartex->GetTexelWidth() - 320) / 2, 0);
sbartex->SetOffsets(1, (sbartex->GetTexelWidth() - 320) / 2, 0);
}
}
//==========================================================================
//
//
@ -3352,6 +3364,8 @@ static int D_DoomMain_Internal (void)
TexAnim.Init();
C_InitConback();
FixUnityStatusBar();
StartScreen->Progress();
V_InitFonts();
V_LoadTranslations();