aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-07-20 19:18:09 +0000
committerFrederic Culot <calcurse@culot.org>2007-07-20 19:18:09 +0000
commit62835f070c26a7d066e9dc6b40c0df4e15c0e91c (patch)
tree0ab4d6e81d96d28510ced3a4b7da563ecc1ec626 /src/utils.c
parente86181022dd0bfa045258774e94d7b57f474c8a3 (diff)
downloadcalcurse-62835f070c26a7d066e9dc6b40c0df4e15c0e91c.tar.gz
calcurse-62835f070c26a7d066e9dc6b40c0df4e15c0e91c.zip
status_bar() updated to use window_t type
Diffstat (limited to 'src/utils.c')
-rwxr-xr-xsrc/utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils.c b/src/utils.c
index 95914a3..37ba0db 100755
--- a/src/utils.c
+++ b/src/utils.c
@@ -1,4 +1,4 @@
-/* $calcurse: utils.c,v 1.29 2007/07/01 17:50:53 culot Exp $ */
+/* $calcurse: utils.c,v 1.30 2007/07/20 19:18:09 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -375,7 +375,7 @@ border_nocolor(WINDOW *window)
* utils.h, depending on which panel the added keybind is assigned to.
*/
void
-status_bar(int which_pan, int nc_bar, int nl_bar)
+status_bar(int which_pan, window_t *win)
{
int cmd_length, space_between_cmds, start, end, i, j = 0;
const int pos[NB_PANELS + 1] =
@@ -425,7 +425,7 @@ status_bar(int which_pan, int nc_bar, int nl_bar)
cmd_length += space_between_cmds;
/* Drawing the keybinding with attribute and label without. */
- erase_window_part(swin, 0, 0, nc_bar, nl_bar);
+ erase_window_part(swin, 0, 0, win->w, win->h);
start = pos[which_pan] + 2*CMDS_PER_LINE*(status_page - 1);
end = MIN(start + 2*CMDS_PER_LINE, pos[which_pan + 1]);
for (i = start; i < end; i += 2) {