From 8872f863d4b02bd61a3afcbf60278c0207b72a80 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 24 Oct 2020 17:11:44 +0200 Subject: [PATCH] - refinement of the statusbar offset fix to only affect unscaled textures. --- src/d_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index c9ad688704..e8559652db 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -2968,8 +2968,8 @@ static void FixWideStatusBar() { FGameTexture* sbartex = TexMan.FindGameTexture("stbar", ETextureType::MiscPatch); - // only adjust offsets if none already exist - if (sbartex && sbartex->GetTexelWidth() > 320 && + // only adjust offsets if none already exist and if the texture is not scaled. For scaled textures a proper offset is needed. + if (sbartex && sbartex->GetTexelWidth() > 320 && sbartex->GetScaleX() == 1 && !sbartex->GetTexelLeftOffset(0) && !sbartex->GetTexelTopOffset(0)) { sbartex->SetOffsets(0, (sbartex->GetTexelWidth() - 320) / 2, 0);