PALETTE_COLORMASK
((r & PALETTE_COLORMASK) << PALETTE_REDSHIFT) |
((g & PALETTE_COLORMASK) << PALETTE_GREENSHIFT) |
(b & PALETTE_COLORMASK);
PALETTE_COLORMASK)
#define PALETTE_BLUE(entry) ((entry) & PALETTE_COLORMASK)