| 294 |
294 |
| 295 int gnt_color_pair(int pair) |
295 int gnt_color_pair(int pair) |
| 296 { |
296 { |
| 297 return (hascolors ? COLOR_PAIR(pair) : |
297 return (hascolors ? COLOR_PAIR(pair) : |
| 298 ((pair == GNT_COLOR_NORMAL || pair == GNT_COLOR_HIGHLIGHT_D || |
298 ((pair == GNT_COLOR_NORMAL || pair == GNT_COLOR_HIGHLIGHT_D || |
| 299 pair == GNT_COLOR_TITLE_D || pair == GNT_COLOR_DISABLED) ? 0 : A_STANDOUT)); |
299 pair == GNT_COLOR_TITLE_D || pair == GNT_COLOR_DISABLED) ? 0 : (int)A_STANDOUT)); |
| 300 } |
300 } |
| 301 |
301 |
| 302 int gnt_color_add_pair(int fg, int bg) |
302 int gnt_color_add_pair(int fg, int bg) |
| 303 { |
303 { |
| 304 init_pair(custom_type, fg, bg); |
304 init_pair(custom_type, fg, bg); |