summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8dd2f87)
raw | patch | inline | side by side (parent: 8dd2f87)
author | Max Kellermann <max@duempel.org> | |
Mon, 22 Sep 2008 08:20:57 +0000 (10:20 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Mon, 22 Sep 2008 08:20:57 +0000 (10:20 +0200) |
Several screens ignore the attribute list_window->repaint. Don't set
it there. It will be replaced with a more intelligent repaint
algorithm later.
it there. It will be replaced with a more intelligent repaint
algorithm later.
src/screen_artist.c | patch | blob | history | |
src/screen_file.c | patch | blob | history | |
src/screen_play.c | patch | blob | history |
diff --git a/src/screen_artist.c b/src/screen_artist.c
index cf2d310ce920659afb83eef17a18f8f888808054..de0466c652065193992655d28d0075e9a29e7d35 100644 (file)
--- a/src/screen_artist.c
+++ b/src/screen_artist.c
case BROWSE_DB_UPDATED:
D("screen_artist.c> browse_callback() [BROWSE_DB_UPDATED]\n");
browser.lw->clear = 1;
- browser.lw->repaint = 1;
update_metalist(c, g_strdup(artist), g_strdup(album));
break;
default:
case CMD_SCREEN_UPDATE:
screen->painted = 0;
browser.lw->clear = 1;
- browser.lw->repaint = 1;
update_metalist(c, g_strdup(artist), g_strdup(album));
screen_status_printf(_("Screen updated!"));
return 0;
diff --git a/src/screen_file.c b/src/screen_file.c
index 26b2739720703668506e68491f31307a5bcbe50d..083b5e34738fb5f2610d1d2d30710e2cb01bf635 100644 (file)
--- a/src/screen_file.c
+++ b/src/screen_file.c
case CMD_SCREEN_UPDATE:
screen->painted = 0;
browser.lw->clear = 1;
- browser.lw->repaint = 1;
browser.filelist = mpdclient_filelist_update(c, browser.filelist);
list_window_check_selected(browser.lw,
filelist_length(browser.filelist));
diff --git a/src/screen_play.c b/src/screen_play.c
index 7c2dc426fcea7b1a285bdf98f2ce3d1d0ce37877..bea8e1253e840e52db628027b582451ee64e6554 100644 (file)
--- a/src/screen_play.c
+++ b/src/screen_play.c
}
/* make shure the playlist is repainted */
lw->clear = 1;
- lw->repaint = 1;
list_window_check_selected(lw, c->playlist.list->len);
}
if( g_list_length(items)>=1 ) {
screen_display_completion_list(screen, items);
lw->clear = 1;
- lw->repaint = 1;
}
}
{
screen_display_completion_list(screen, items);
lw->clear = 1;
- lw->repaint = 1;
}
if( line && line[0] && line[strlen(line)-1]=='/' &&
play_paint(screen, c);
playlist_id = c->playlist.id;
- } else if( lw->repaint || 1) {
+ } else {
list_window_paint(lw, list_callback, (void *) c);
wnoutrefresh(lw->w);
- lw->repaint = 0;
}
}
case CMD_SCREEN_UPDATE:
screen->painted = 0;
lw->clear = 1;
- lw->repaint = 1;
center_playing_item(c);
return 1;
case CMD_LIST_MOVE_UP: