From b77a0eb7cf9eab87aa9abfa3b7789af7c8a67571 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 1 Feb 2017 11:44:13 +0100 Subject: [PATCH] - 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. --- src/d_main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index e0676b751..9a966e6d5 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -1062,6 +1062,7 @@ void D_PageTicker (void) void D_PageDrawer (void) { + screen->Clear(0, 0, SCREENWIDTH, SCREENHEIGHT, 0, 0); if (Page != NULL) { screen->DrawTexture (Page, 0, 0, @@ -1069,11 +1070,9 @@ void D_PageDrawer (void) DTA_Masked, false, DTA_BilinearFilter, true, TAG_DONE); - screen->FillBorder (NULL); } else { - screen->Clear (0, 0, SCREENWIDTH, SCREENHEIGHT, 0, 0); if (!PageBlank) { screen->DrawText (SmallFont, CR_WHITE, 0, 0, "Page graphic goes here", TAG_DONE);