From db3d8351879b4c69408be0e25f45cd514ad42044 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 25 Sep 2008 17:40:36 +0200 Subject: screen: don't call wrefresh() in methods paint() and update() screen_paint() and screen_update() are responsible for refreshing the screen. We can remove all wrefresh() and wnoutrefresh() invocations from all paint() and update() method implementations. --- src/screen_lyrics.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/screen_lyrics.c') diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c index 152580092..50f41b7f6 100644 --- a/src/screen_lyrics.c +++ b/src/screen_lyrics.c @@ -169,8 +169,6 @@ screen_lyrics_load(struct mpd_song *song) screen_lyrics_callback, NULL); } -static void lyrics_paint(screen_t *screen, mpdclient_t *c); - static FILE *create_lyr_file(const char *artist, const char *title) { char path[1024]; @@ -265,7 +263,6 @@ static void lyrics_paint(mpd_unused screen_t *screen, mpd_unused mpdclient_t *c) { list_window_paint(lw, list_callback, NULL); - wrefresh(lw->w); } @@ -274,7 +271,6 @@ lyrics_update(mpd_unused screen_t *screen, mpd_unused mpdclient_t *c) { if( lw->repaint ) { list_window_paint(lw, list_callback, NULL); - wrefresh(lw->w); lw->repaint = 0; } } @@ -302,6 +298,7 @@ lyrics_cmd(screen_t *screen, mpdclient_t *c, command_t cmd) if (c->song != NULL) { screen_lyrics_load(c->song); lyrics_paint(NULL, NULL); + wrefresh(lw->w); } return 1; default: -- cgit v1.2.3