mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53:40 +00:00
- Making any blends with full red a special colormap seems like it would be far too
easy to accidentally trigger. SVN r1864 (trunk)
This commit is contained in:
parent
e9d61a3f46
commit
79298285f7
1 changed files with 4 additions and 3 deletions
|
@ -106,21 +106,22 @@ struct FSpecialColormap
|
|||
extern TArray<FSpecialColormap> SpecialColormaps;
|
||||
|
||||
// some utility functions to store special colormaps in powerup blends
|
||||
#define SPECIALCOLORMAP_MASK 0x00ff0000
|
||||
#define SPECIALCOLORMAP_MASK 0xBEEF0000
|
||||
|
||||
inline int MakeSpecialColormap(int index)
|
||||
{
|
||||
assert(index >= 0 && index < 65536);
|
||||
return index | SPECIALCOLORMAP_MASK;
|
||||
}
|
||||
|
||||
inline bool IsSpecialColormap(int map)
|
||||
{
|
||||
return (map & SPECIALCOLORMAP_MASK) == SPECIALCOLORMAP_MASK;
|
||||
return (map & 0xFFFF0000) == SPECIALCOLORMAP_MASK;
|
||||
}
|
||||
|
||||
inline int GetSpecialColormap(int blend)
|
||||
{
|
||||
return IsSpecialColormap(blend)? blend & ~SPECIALCOLORMAP_MASK : NOFIXEDCOLORMAP;
|
||||
return IsSpecialColormap(blend) ? blend & 0xFFFF : NOFIXEDCOLORMAP;
|
||||
}
|
||||
|
||||
int AddSpecialColormap(double r, double g, double b, bool inv);
|
||||
|
|
Loading…
Reference in a new issue