- disallow unity iwad status bar adjustment if offset is already set

This commit is contained in:
Rachael Alexanderson 2020-09-04 21:30:31 -04:00
parent 6c514a4cc4
commit d1a6831f06

View file

@ -2969,7 +2969,8 @@ static void FixUnityStatusBar()
FGameTexture* sbartex = TexMan.FindGameTexture("stbar", ETextureType::MiscPatch);
if (!sbartex)
return;
if (sbartex->GetTexelWidth() > 320)
if (sbartex->GetTexelWidth() > 320 &&
!sbartex->GetTexelLeftOffset(0) && !sbartex->GetTexelTopOffset(0))
{
sbartex->SetOffsets(0, (sbartex->GetTexelWidth() - 320) / 2, 0);
sbartex->SetOffsets(1, (sbartex->GetTexelWidth() - 320) / 2, 0);