- add support for the (as of now) newest version of the Unity re-releases
This commit is contained in:
parent
e740e00e07
commit
0204051381
6 changed files with 30 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue