Searched refs:C_SHIFT (Results 1 – 2 of 2) sorted by relevance
293 #define C_SHIFT 9 /* we need more bits than there are colors */ macro294 #define C_MASK ((1 << C_SHIFT) - 1)295 #define PAIR_OF(fg, bg) ((((fg) & C_MASK) << C_SHIFT) | ((bg) & C_MASK))
480 NCURSES_COLOR_T fg = ((SP->_color_pairs[pair] >> C_SHIFT) & C_MASK); in pair_content()