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

@@ -386,7 +386,7 @@ bool HandleBootstrap()
GfxInitPalettes();
static const int offsets[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x80, 0, 0, 0, 0x04, 0x08 };
for (Colours i = COLOUR_BEGIN; i != COLOUR_END; i++) {
for (int j = 0; j < 8; j++) {
for (ColourShade j = SHADE_BEGIN; j < SHADE_END; j++) {
SetColourGradient(i, j, offsets[i] + j);
}
}