diff options
author | Kalle Wallin <kaw@linux.se> | 2004-03-26 13:28:51 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-03-26 13:28:51 +0000 |
commit | 1e17a1289f54c440ac552c741e949d66b3e9bfa5 (patch) | |
tree | 7260bed78f83b13b6b873946294d6f69c48ecad9 | |
parent | 1c75a79b279c05fb7049183069942de39536a155 (diff) | |
download | mpd-1e17a1289f54c440ac552c741e949d66b3e9bfa5.tar.gz mpd-1e17a1289f54c440ac552c741e949d66b3e9bfa5.tar.xz mpd-1e17a1289f54c440ac552c741e949d66b3e9bfa5.zip |
Replaced wrefresh() with wnoutrefresh().
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@499 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r-- | screen.c | 12 | ||||
-rw-r--r-- | screen_file.c | 4 | ||||
-rw-r--r-- | screen_play.c | 4 |
3 files changed, 11 insertions, 9 deletions
@@ -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 e3de2d051..b792d6ad9 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 c52c2d165..7c5cab1ff 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; } } |