Code

Replaced wrefresh() with wnoutrefresh().
authorKalle Wallin <kaw@linux.se>
Fri, 26 Mar 2004 13:28:51 +0000 (13:28 +0000)
committerKalle Wallin <kaw@linux.se>
Fri, 26 Mar 2004 13:28:51 +0000 (13:28 +0000)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@499 09075e82-0dd4-0310-85a5-a0d7c8717e4f

screen.c
screen_file.c
screen_play.c

index 8a885f3f7174d9a7d6127fb04c707e1385341831..a63af20f69a8e61aa18f7ddc44ec0602cbc35672 100644 (file)
--- a/screen.c
+++ b/screen.c
@@ -98,7 +98,7 @@ paint_top_window(char *header, int volume, int clear)
       if( options.enable_colors )
        wattroff(w, LINE_COLORS);
 
-      wrefresh(w);
+      wnoutrefresh(w);
     }
 }
 
@@ -112,7 +112,7 @@ paint_progress_window(mpd_client_t *c)
     {
       mvwhline(screen->progress_window.w, 0, 0, ACS_HLINE, 
               screen->progress_window.cols);
-      wrefresh(screen->progress_window.w);
+      wnoutrefresh(screen->progress_window.w);
       return;
     }
 
@@ -125,7 +125,7 @@ paint_progress_window(mpd_client_t *c)
           screen->progress_window.cols);
   whline(screen->progress_window.w, '=', width-1);
   mvwaddch(screen->progress_window.w, 0, width-1, 'O');
-  wrefresh(screen->progress_window.w);
+  wnoutrefresh(screen->progress_window.w);
 }
 
 static void 
@@ -201,7 +201,7 @@ paint_status_window(mpd_client_t *c)
 #endif
   
 
-  wrefresh(w);
+  wnoutrefresh(w);
 }
 
 
@@ -245,7 +245,7 @@ screen_status_message(char *msg)
   wattron(w, A_BOLD);
   my_waddstr(w, msg, ALERT_COLORS);
   wattroff(w, A_BOLD);
-  wrefresh(w);
+  wnoutrefresh(w);
   screen->status_timestamp = time(NULL);
 }
 
@@ -397,6 +397,7 @@ screen_paint(mpd_client_t *c)
   paint_progress_window(c);
   paint_status_window(c);
   screen->painted = 1;
+  doupdate();
 }
 
 void 
@@ -426,6 +427,7 @@ screen_update(mpd_client_t *c)
     }
   paint_progress_window(c);
   paint_status_window(c);
+  doupdate();
 }
 
 void 
index e3de2d051aa8853114b13e010fee5621fe1cda58..b792d6ad906e02435caff3344ab5065b069ee021 100644 (file)
@@ -310,7 +310,7 @@ file_paint(screen_t *screen, mpd_client_t *c)
   w->clear = 1;
   
   list_window_paint(screen->filelist, list_callback, (void *) c);
-  wrefresh(screen->filelist->w);
+  wnoutrefresh(screen->filelist->w);
 }
 
 void 
@@ -323,7 +323,7 @@ file_update(screen_t *screen, mpd_client_t *c)
       return;
     }
   list_window_paint(screen->filelist, list_callback, (void *) c);
-  wrefresh(screen->filelist->w);
+  wnoutrefresh(screen->filelist->w);
 }
 
 
index c52c2d1651a8b0463493ae0a0e6f028df00f8a15..7c5cab1ff080503e259c3956d08a3897593267ac 100644 (file)
@@ -53,7 +53,7 @@ play_paint(screen_t *screen, mpd_client_t *c)
   w->clear = 1;
   
   list_window_paint(screen->playlist, list_callback, (void *) c);
-  wrefresh(screen->playlist->w);
+  wnoutrefresh(screen->playlist->w);
 }
 
 void
@@ -72,7 +72,7 @@ play_update(screen_t *screen, mpd_client_t *c)
   else if( screen->playlist->repaint || 1)
     {
       list_window_paint(screen->playlist, list_callback, (void *) c);
-      wrefresh(screen->playlist->w);
+      wnoutrefresh(screen->playlist->w);
       screen->playlist->repaint = 0;
     }
 }