mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-03-21 02:11:25 +00:00
- refinement of the statusbar offset fix to only affect unscaled textures.
This commit is contained in:
parent
79944ca76a
commit
8872f863d4
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue