From d17525fac78488d86f90e989c6c35bfc2d9b139d Mon Sep 17 00:00:00 2001 From: toaster Date: Thu, 23 Feb 2023 17:24:11 +0000 Subject: [PATCH] M_DrawChallenges: reimplement dark areas for contrast/readability Now uses V_DrawFadeFill and MENUHINT patch directly. --- src/k_menudraw.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/k_menudraw.c b/src/k_menudraw.c index 100d1dcc9..b3b750f45 100644 --- a/src/k_menudraw.c +++ b/src/k_menudraw.c @@ -4819,6 +4819,8 @@ static void M_DrawChallengePreview(INT32 x, INT32 y) } } +#define challengetransparentstrength 8 + void M_DrawChallenges(void) { INT32 x = currentMenu->x, explodex, selectx; @@ -4855,6 +4857,8 @@ void M_DrawChallenges(void) goto challengedesc; } + V_DrawFadeFill(0, y-2, BASEVIDWIDTH, 90, 0, 31, challengetransparentstrength); + x -= 16; x += challengesmenu.offset; @@ -4939,6 +4943,12 @@ challengedesc: { y = 120; + V_DrawScaledPatch(0, y, + (10-challengetransparentstrength)<