From b7fc5e62feba5edb3f67844c87fc8072930ea34b Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sat, 14 May 2011 19:36:36 +0000 Subject: Ajout cursesUninit et debug problème makeWindow (erreur logique pointeurs, changement prototype fonction) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///var/svn/2011-ddhardrescue/trunk@14 d3078510-dda0-49f1-841c-895ef4b7ec81 --- inc/utils.h | 1 + src/utils.c | 30 +++++++++++++++++++----------- 2 files changed, 20 insertions(+), 11 deletions(-) mode change 100755 => 100644 src/utils.c diff --git a/inc/utils.h b/inc/utils.h index 0149aaf..8492179 100755 --- a/inc/utils.h +++ b/inc/utils.h @@ -12,5 +12,6 @@ struct progArgs { int parseArgs(int argc, char **argv, struct progArgs *args); void usage(char *progname); int cursesInit(WINDOW *wins[], PANEL *panels[], int count); +void cursesUnInit(WINDOW *wins[], PANEL *panels[], int count); #endif /*UTILS_H*/ diff --git a/src/utils.c b/src/utils.c old mode 100755 new mode 100644 index e4fdbc0..86917ae --- a/src/utils.c +++ b/src/utils.c @@ -48,14 +48,13 @@ void print_in_middle(WINDOW *win, int starty, int startx, int width, char *strin refresh(); } - -void makeWin(WINDOW *win, PANEL *panel, int h, int w, int y, int x, char title[]) { +void makeWin(WINDOW **win, PANEL **panel, int h, int w, int y, int x, char title[]) { int i; - win = newwin(h, w, y, x); - mvwprintw(win, 0, 0, "%s", title); - mvwchgat(win, 0, 0, -1, A_BOLD, 2, NULL); - for(i=1;i