Change PaletteIndexFullbrights from uint32_t[8] to uint8_t[32]

git-svn-id: https://svn.eduke32.com/eduke32@8487 1a8010ca-5511-0410-912e-c29ae57300e0

# Conflicts:
#	source/build/include/palette.h
This commit is contained in:
hendricks266 2019-12-23 07:03:36 +00:00 committed by Christoph Oelckers
parent 3914eb5f85
commit 7db49ea20a
2 changed files with 5 additions and 4 deletions

View file

@ -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

View file

@ -335,7 +335,7 @@ void paletteLoadFromDisk(void)
}
}
uint32_t PaletteIndexFullbrights[8];
uint8_t PaletteIndexFullbrights[32];
void palettePostLoadTables(void)
{