diff options
author | Frederic Culot <calcurse@culot.org> | 2007-03-04 16:13:43 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2007-03-04 16:13:43 +0000 |
commit | dc56e1b42a4f39bca25a9df5ab47a80670da0b56 (patch) | |
tree | 86b7474477dd8df4af071be75ef4ed0e806c00b7 /src | |
parent | ccf6ca5a998678c1dfb2bf5d70b0c70891290d92 (diff) | |
download | calcurse-dc56e1b42a4f39bca25a9df5ab47a80670da0b56.zip |
border_color() and border_nocolor() updated to take into account new
color definitions
Diffstat (limited to 'src')
-rwxr-xr-x | src/utils.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/utils.c b/src/utils.c index 078b302..efdf28f 100755 --- a/src/utils.c +++ b/src/utils.c @@ -1,4 +1,4 @@ -/* $calcurse: utils.c,v 1.22 2007/02/28 21:29:05 culot Exp $ */ +/* $calcurse: utils.c,v 1.23 2007/03/04 16:13:43 culot Exp $ */ /* * Calcurse - text-based organizer @@ -312,13 +312,14 @@ int is_all_digit(char *string) } /* draw panel border in color */ -void border_color(WINDOW * window, int bcolr) +void +border_color(WINDOW *window) { int color_attr = A_BOLD; int no_color_attr = A_BOLD; if (colorize) { - wattron(window, color_attr | COLOR_PAIR(bcolr)); + wattron(window, color_attr | COLOR_PAIR(COLR_CUSTOM)); box(window, 0, 0); } else { wattron(window, no_color_attr); @@ -326,7 +327,7 @@ void border_color(WINDOW * window, int bcolr) } if (colorize) { - wattroff(window, color_attr | COLOR_PAIR(bcolr)); + wattroff(window, color_attr | COLOR_PAIR(COLR_CUSTOM)); } else { wattroff(window, no_color_attr); } @@ -335,14 +336,14 @@ void border_color(WINDOW * window, int bcolr) } /* draw panel border without any color */ -void border_nocolor(WINDOW * window) +void +border_nocolor(WINDOW *window) { - int colr = 9; int color_attr = A_BOLD; int no_color_attr = A_DIM; if (colorize) { - wattron(window, color_attr | COLOR_PAIR(colr)); + wattron(window, color_attr | COLOR_PAIR(COLR_DEFAULT)); } else { wattron(window, no_color_attr); } @@ -350,7 +351,7 @@ void border_nocolor(WINDOW * window) box(window, 0, 0); if (colorize) { - wattroff(window, color_attr | COLOR_PAIR(colr)); + wattroff(window, color_attr | COLOR_PAIR(COLR_DEFAULT)); } else { wattroff(window, no_color_attr); } |