- let D_PageDrawer always clear the background.

The math in DCanvas::FillBorder does not always work out so better clean the entire screen before drawing a fullscreen image to ensure that the menu blend is always drawn over something valid.
This commit is contained in:
Christoph Oelckers 2017-02-01 11:44:13 +01:00
parent bc29f61bfd
commit b77a0eb7cf

View file

@ -1062,6 +1062,7 @@ void D_PageTicker (void)
void D_PageDrawer (void) void D_PageDrawer (void)
{ {
screen->Clear(0, 0, SCREENWIDTH, SCREENHEIGHT, 0, 0);
if (Page != NULL) if (Page != NULL)
{ {
screen->DrawTexture (Page, 0, 0, screen->DrawTexture (Page, 0, 0,
@ -1069,11 +1070,9 @@ void D_PageDrawer (void)
DTA_Masked, false, DTA_Masked, false,
DTA_BilinearFilter, true, DTA_BilinearFilter, true,
TAG_DONE); TAG_DONE);
screen->FillBorder (NULL);
} }
else else
{ {
screen->Clear (0, 0, SCREENWIDTH, SCREENHEIGHT, 0, 0);
if (!PageBlank) if (!PageBlank)
{ {
screen->DrawText (SmallFont, CR_WHITE, 0, 0, "Page graphic goes here", TAG_DONE); screen->DrawText (SmallFont, CR_WHITE, 0, 0, "Page graphic goes here", TAG_DONE);