mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
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:
parent
3914eb5f85
commit
7db49ea20a
2 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -335,7 +335,7 @@ void paletteLoadFromDisk(void)
|
|||
}
|
||||
}
|
||||
|
||||
uint32_t PaletteIndexFullbrights[8];
|
||||
uint8_t PaletteIndexFullbrights[32];
|
||||
|
||||
void palettePostLoadTables(void)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue