Code

multi liner ;) fixed segfault
authorAndreas Obergrusberger <tradiaz@yahoo.de>
Fri, 8 Sep 2006 22:24:01 +0000 (22:24 +0000)
committerAndreas Obergrusberger <tradiaz@yahoo.de>
Fri, 8 Sep 2006 22:24:01 +0000 (22:24 +0000)
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4749 09075e82-0dd4-0310-85a5-a0d7c8717e4f

src/screen.c
src/screen_utils.c

index 7f21ec934a39fc667f666e44269e28d82dbf0d05..13e1975c1dc25a50431f1e09bb6bfb5b9d0a6ef0 100644 (file)
@@ -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;
index 417a74d67a7e3cac8d021388a7d0d806e85e9c1b..43d57e142d8a5633d20954603d0ab79d1a7c3b7e 100644 (file)
@@ -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( y<screen->main_window.rows )
     {
       GList *item = g_list_nth(list, y+offset);