finch/libgnt/gntcolors.c

changeset 34306
4fb8809f2f97
parent 33649
1d643f401252
child 35456
821aa4bcb6fa
equal deleted inserted replaced
34305:5804117fb298 34306:4fb8809f2f97
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);

mercurial