From d1a6831f06b027760021fb640933873605113151 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Fri, 4 Sep 2020 21:30:31 -0400 Subject: [PATCH] - disallow unity iwad status bar adjustment if offset is already set --- src/d_main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index 44d8caf39..6615ccadc 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -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);