summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9e27391)
raw | patch | inline | side by side (parent: 9e27391)
author | Max Kellermann <max@duempel.org> | |
Thu, 25 Sep 2008 15:40:36 +0000 (17:40 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Thu, 25 Sep 2008 15:40:36 +0000 (17:40 +0200) |
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.
screen. We can remove all wrefresh() and wnoutrefresh() invocations
from all paint() and update() method implementations.
diff --git a/src/screen_artist.c b/src/screen_artist.c
index bf7e54df09034017c87a13dbb68becbed8185d6b..6857b66adb712e2cbe94eaa5fcdde9a614dff59a 100644 (file)
--- a/src/screen_artist.c
+++ b/src/screen_artist.c
wmove(browser.lw->w, 0, 0);
wclrtobot(browser.lw->w);
}
-
- wnoutrefresh(browser.lw->w);
}
static void
diff --git a/src/screen_file.c b/src/screen_file.c
index 8f9c6c89724d142e65755b73f057baacb2dca68d..a3bf192d92fd3a75324e7a17e04966393fe1d8fa 100644 (file)
--- a/src/screen_file.c
+++ b/src/screen_file.c
browse_paint(mpd_unused screen_t *screen, mpd_unused mpdclient_t *c)
{
list_window_paint(browser.lw, browser_lw_callback, browser.filelist);
- wnoutrefresh(browser.lw->w);
}
static void
}
list_window_paint(browser.lw, browser_lw_callback, browser.filelist);
- wnoutrefresh(browser.lw->w);
}
static int
diff --git a/src/screen_help.c b/src/screen_help.c
index eec76d18ad62088db76339efeed5472950cef0b4..cbdd66c62fbacec3c0a6dbcc6196e212b25b8bf0 100644 (file)
--- a/src/screen_help.c
+++ b/src/screen_help.c
help_paint(mpd_unused screen_t *screen, mpd_unused mpdclient_t *c)
{
list_window_paint(lw, list_callback, NULL);
- wrefresh(lw->w);
}
static int
diff --git a/src/screen_keydef.c b/src/screen_keydef.c
index 38ba315c33099993b9f6de34ac012f84cd177bc1..f6ae3d3e950562fc5f645d0067d9ea533e4ea2ef 100644 (file)
--- a/src/screen_keydef.c
+++ b/src/screen_keydef.c
keydef_paint(mpd_unused screen_t *screen, mpd_unused mpdclient_t *c)
{
list_window_paint(lw, list_callback, NULL);
- wrefresh(lw->w);
}
static void
{
if (lw->repaint) {
list_window_paint(lw, list_callback, NULL);
- wrefresh(lw->w);
lw->repaint = 0;
}
}
diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c
index 15258009274cffdcaff845c92c637dac658fc61a..50f41b7f6f4c83c0a27d72efbe5bb7d839b0e9dd 100644 (file)
--- a/src/screen_lyrics.c
+++ b/src/screen_lyrics.c
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];
lyrics_paint(mpd_unused screen_t *screen, mpd_unused mpdclient_t *c)
{
list_window_paint(lw, list_callback, NULL);
- wrefresh(lw->w);
}
{
if( lw->repaint ) {
list_window_paint(lw, list_callback, NULL);
- wrefresh(lw->w);
lw->repaint = 0;
}
}
if (c->song != NULL) {
screen_lyrics_load(c->song);
lyrics_paint(NULL, NULL);
+ wrefresh(lw->w);
}
return 1;
default:
diff --git a/src/screen_play.c b/src/screen_play.c
index 579d4f4ca98de25062ac9c37e4c187f96bca12d5..6eac958b6efc36e015cf8b0f5c991063c33fb1b4 100644 (file)
--- a/src/screen_play.c
+++ b/src/screen_play.c
play_paint(mpd_unused screen_t *screen, mpdclient_t *c)
{
list_window_paint(lw, list_callback, (void *) c);
- wnoutrefresh(lw->w);
}
static void
playlist_id = c->playlist.id;
} else {
list_window_paint(lw, list_callback, (void *) c);
- wnoutrefresh(lw->w);
}
}
diff --git a/src/screen_search.c b/src/screen_search.c
index 5995b79765a2acffc732b93605ec26ee3eb015c3..723409028565cde135932103b93b55f3c44d0d3f 100644 (file)
--- a/src/screen_search.c
+++ b/src/screen_search.c
// wmove(lw->w, 0, 0);
//wclrtobot(lw->w);
}
-
- wnoutrefresh(browser.lw->w);
}
static void
}
list_window_paint(browser.lw, browser_lw_callback, browser.filelist);
- wnoutrefresh(browser.lw->w);
}
static const char *