mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 23:33:00 +00:00
- For status bars for the Unity iwad - only force offsets if the width is greater than 320.
This commit is contained in:
parent
0204051381
commit
6c514a4cc4
1 changed files with 5 additions and 2 deletions
|
@ -2969,9 +2969,12 @@ static void FixUnityStatusBar()
|
|||
FGameTexture* sbartex = TexMan.FindGameTexture("stbar", ETextureType::MiscPatch);
|
||||
if (!sbartex)
|
||||
return;
|
||||
if (sbartex->GetTexelWidth() > 320)
|
||||
{
|
||||
sbartex->SetOffsets(0, (sbartex->GetTexelWidth() - 320) / 2, 0);
|
||||
sbartex->SetOffsets(1, (sbartex->GetTexelWidth() - 320) / 2, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
Loading…
Reference in a new issue