From d85a4a3c7afbf90ead2a7a94d5392246c945eb8d Mon Sep 17 00:00:00 2001 From: Julia Nechaevskaya Date: Thu, 12 Sep 2024 09:01:32 +0300 Subject: [PATCH] Heretic: fix for possible incorrect status bar shading in TrueColor --- src/heretic/sb_bar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/heretic/sb_bar.c b/src/heretic/sb_bar.c index 67ffebe1bb..4265096138 100644 --- a/src/heretic/sb_bar.c +++ b/src/heretic/sb_bar.c @@ -450,7 +450,7 @@ static void ShadeLine(int x, int y, int height, int shade) #ifndef CRISPY_TRUECOLOR shades = colormaps + 9 * 256 + shade * 2 * 256; #else - shade = 0xFF - (((9 + shade * 2) << 8) / NUMCOLORMAPS); + shade = 0xFF - (((9 + shade * 2) << 8) / 32); // [crispy] shade to darkest 32nd COLORMAP row #endif dest = I_VideoBuffer + y * SCREENWIDTH + x + (WIDESCREENDELTA << crispy->hires); while (height--)