summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-07-20 19:14:33 +0000
committerFrederic Culot <calcurse@culot.org>2007-07-20 19:14:33 +0000
commit155c4c3f8e61e716543e11a27a99c1477dea50f7 (patch)
tree5dcfeb7e49d753b95f67230586f86ac95bf6c9b7
parent9d0d55aae543f3e9de7e429d8a466cdf6a5627b7 (diff)
downloadcalcurse-155c4c3f8e61e716543e11a27a99c1477dea50f7.tar.gz
calcurse-155c4c3f8e61e716543e11a27a99c1477dea50f7.zip
custom_load_conf() and erase_window_part() updated to use window_t type
-rwxr-xr-xsrc/custom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/custom.c b/src/custom.c
index 6c0cdd1..61f6289 100755
--- a/src/custom.c
+++ b/src/custom.c
@@ -1,4 +1,4 @@
-/* $calcurse: custom.c,v 1.12 2007/07/01 17:59:14 culot Exp $ */
+/* $calcurse: custom.c,v 1.13 2007/07/20 19:14:33 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -102,7 +102,7 @@ custom_remove_attr(WINDOW *win, int attr_num)
/* Load the user configuration. */
void
-custom_load_conf(conf_t *conf, int background, int nc_bar, int nl_bar)
+custom_load_conf(conf_t *conf, int background, window_t *win)
{
FILE *data_file;
char *mesg_line1 = _("Failed to open config file");
@@ -219,7 +219,7 @@ custom_load_conf(conf_t *conf, int background, int nc_bar, int nl_bar)
}
fclose(data_file);
pthread_mutex_unlock(&nbar->mutex);
- erase_window_part(swin, 0, 0, nc_bar, nl_bar);
+ erase_window_part(swin, 0, 0, win->w, win->h);
}
/* Draws the configuration bar */