Codechange: Add ColourShade enum.

This commit is contained in:
Peter Nelson
2023-12-28 10:02:49 +00:00
committed by Peter Nelson
parent 0463d4c198
commit ae3390fe48
22 changed files with 72 additions and 58 deletions

View File

@@ -494,7 +494,7 @@ bool IsValidConsoleColour(TextColour c)
* colour gradient, so it must be one of those. */
c &= ~TC_IS_PALETTE_COLOUR;
for (Colours i = COLOUR_BEGIN; i < COLOUR_END; i++) {
if (GetColourGradient(i, 4) == c) return true;
if (GetColourGradient(i, SHADE_4) == c) return true;
}
return false;