mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-18 00:11:37 +00:00
- disallow unity iwad status bar adjustment if offset is already set
This commit is contained in:
parent
6c514a4cc4
commit
d1a6831f06
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue