From b93dee727713d9e471e801242fbce2a762c66e75 Mon Sep 17 00:00:00 2001 From: Andreas Obergrusberger Date: Fri, 8 Sep 2006 22:24:01 +0000 Subject: [PATCH] multi liner ;) fixed segfault git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4749 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/screen.c | 11 +++++------ src/screen_utils.c | 4 ++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/screen.c b/src/screen.c index 7f21ec9..13e1975 100644 --- a/src/screen.c +++ b/src/screen.c @@ -584,12 +584,6 @@ ncurses_init() screen->mode = 0; screen->cols = COLS; screen->rows = LINES; -} - -int -screen_init(mpdclient_t *c) -{ - gint i; screen->buf = g_malloc(screen->cols); screen->buf_size = screen->cols; @@ -649,6 +643,11 @@ screen_init(mpdclient_t *c) wbkgd(screen->status_window.w, COLOR_PAIR(COLOR_STATUS)); colors_use(screen->progress_window.w, COLOR_PROGRESSBAR); } +} + +screen_init(mpdclient_t *c) +{ + gint i; /* initialize screens */ i=0; diff --git a/src/screen_utils.c b/src/screen_utils.c index 417a74d..43d57e1 100644 --- a/src/screen_utils.c +++ b/src/screen_utils.c @@ -53,7 +53,7 @@ screen_getch(WINDOW *w, char *prompt) int key = -1; int prompt_len = strlen(prompt); - // colors_use(w, COLOR_STATUS_ALERT); + colors_use(w, COLOR_STATUS_ALERT); wclear(w); wmove(w, 0, 0); waddstr(w, prompt); @@ -244,7 +244,7 @@ screen_display_completion_list(screen_t *screen, GList *list) offset = 0; } - colors_use(w, COLOR_STATUS_ALERT); + colors_use(w, COLOR_STATUS_ALERT); while( ymain_window.rows ) { GList *item = g_list_nth(list, y+offset); -- 2.30.2