diff --git a/source/build/include/palette.h b/source/build/include/palette.h index d8b6f0c21..b92140a3a 100644 --- a/source/build/include/palette.h +++ b/source/build/include/palette.h @@ -28,16 +28,17 @@ extern uint8_t curbasepal; #define paletteGetBlendTable(blend) (blendtable[blend]) -extern uint32_t PaletteIndexFullbrights[8]; +extern uint8_t PaletteIndexFullbrights[32]; + inline bool IsPaletteIndexFullbright(uint8_t col) { - return (PaletteIndexFullbrights[col >> 5] & (1u << (col & 31))); + return (PaletteIndexFullbrights[col >> 3] & (1u << (col & 7))); } inline void SetPaletteIndexFullbright(int col) { - PaletteIndexFullbrights[col >> 5] |= (1u << (col & 31)); + PaletteIndexFullbrights[col >> 3] |= (1u << (col & 7)); } struct palette_t diff --git a/source/build/src/palette.cpp b/source/build/src/palette.cpp index 569ffef40..d719f4811 100644 --- a/source/build/src/palette.cpp +++ b/source/build/src/palette.cpp @@ -335,7 +335,7 @@ void paletteLoadFromDisk(void) } } -uint32_t PaletteIndexFullbrights[8]; +uint8_t PaletteIndexFullbrights[32]; void palettePostLoadTables(void) {