Skip to content

Commit

Permalink
Heretic: fix for possible incorrect status bar shading in TrueColor (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
JNechaevsky authored Sep 12, 2024
1 parent e9c7b3d commit 3e7b32a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/heretic/sb_bar.c
Original file line number Diff line number Diff line change
Expand Up @@ -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--)
Expand Down

0 comments on commit 3e7b32a

Please sign in to comment.