From 767a41ee0640f1fd8b62fb3676a0e3df07681551 Mon Sep 17 00:00:00 2001 From: Arsinikk Date: Fri, 13 Dec 2024 16:54:15 -0600 Subject: [PATCH] Fix screen effects not being taken into account with OpenGL dark overlay --- prboom2/src/gl_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prboom2/src/gl_main.c b/prboom2/src/gl_main.c index 9efe79b77..0b01f43e5 100644 --- a/prboom2/src/gl_main.c +++ b/prboom2/src/gl_main.c @@ -850,7 +850,8 @@ void gld_FillBlock(int x, int y, int width, int height, int col) void gld_DrawShaded(int x, int y, int width, int height, int shade) { - color_rgb_t color = gld_LookupIndexedColor(playpal_black, V_IsAutomapLightmodeIndexed()); + color_rgb_t color = gld_LookupIndexedColor((invul_cm && !V_IsAutomapLightmodeIndexed()) ? playpal_white : playpal_black, + V_IsUILightmodeIndexed() || V_IsAutomapLightmodeIndexed()); glsl_PushNullShader();