mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +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,8 +2969,11 @@ static void FixUnityStatusBar()
|
|||
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);
|
||||
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