- fixed background tiling for summary screen.

Since the background object gets recycled it must clear this flag before loading a new background.
This commit is contained in:
Christoph Oelckers 2022-06-29 00:34:44 +02:00
parent 5cf6a5ab1a
commit 44a15bebea
1 changed files with 3 additions and 1 deletions

View File

@ -278,6 +278,7 @@ bool DInterBackground::LoadBackground(bool isenterpic)
bcnt = 0;
tilebackground = false;
texture.SetInvalid();
level_info_t * li = FindLevelInfo(wbs->current);
@ -548,7 +549,8 @@ bool DInterBackground::LoadBackground(bool isenterpic)
background = texture;
auto tex= TexMan.GetGameTexture(texture);
// extremely small textures will always be tiled.
if (tex && tex->GetDisplayWidth() < 128 && tex->GetDisplayHeight() < 128) tilebackground = true;
if (tex && tex->GetDisplayWidth() < 128 && tex->GetDisplayHeight() < 128)
tilebackground = true;
return noautostartmap;
}