- 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

View file

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