- handled approx. half of all cases where the address of level is taken.

This commit is contained in:
Christoph Oelckers 2019-01-28 00:55:21 +01:00
commit 648e472744
38 changed files with 122 additions and 128 deletions

View file

@ -788,7 +788,7 @@ void DBaseStatusBar::RefreshViewBorder ()
{
return;
}
auto tex = GetBorderTexture(&level);
auto tex = GetBorderTexture(currentUILevel);
screen->DrawBorder (tex, 0, 0, Width, viewwindowy);
screen->DrawBorder (tex, 0, viewwindowy, viewwindowx, viewheight + viewwindowy);
screen->DrawBorder (tex, viewwindowx + viewwidth, viewwindowy, Width, viewheight + viewwindowy);
@ -814,7 +814,7 @@ void DBaseStatusBar::RefreshBackground () const
if (x == 0 && y == SCREENHEIGHT) return;
auto tex = GetBorderTexture(&level);
auto tex = GetBorderTexture(currentUILevel);
if(!CompleteBorder)
{