From: Kalle Wallin Date: Fri, 26 Mar 2004 13:28:51 +0000 (+0000) Subject: Replaced wrefresh() with wnoutrefresh(). X-Git-Tag: v0.12_alpha1~649 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1e17a1289f54c440ac552c741e949d66b3e9bfa5;p=ncmpc.git Replaced wrefresh() with wnoutrefresh(). git-svn-id: https://svn.musicpd.org/ncmpc/trunk@499 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- diff --git a/screen.c b/screen.c index 8a885f3..a63af20 100644 --- 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 diff --git a/screen_file.c b/screen_file.c index e3de2d0..b792d6a 100644 --- a/screen_file.c +++ b/screen_file.c @@ -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); } diff --git a/screen_play.c b/screen_play.c index c52c2d1..7c5cab1 100644 --- a/screen_play.c +++ b/screen_play.c @@ -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; } }