summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 950aa3b)
raw | patch | inline | side by side (parent: 950aa3b)
author | Kalle Wallin <kaw@linux.se> | |
Tue, 22 Jun 2004 15:14:34 +0000 (15:14 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Tue, 22 Jun 2004 15:14:34 +0000 (15:14 +0000) |
src/screen.c | patch | blob | history | |
src/screen_file.c | patch | blob | history | |
src/screen_play.c | patch | blob | history |
diff --git a/src/screen.c b/src/screen.c
index 8d517c950518d11e6839aab315e0df1bb6e10833..ba155a4cff4a88fbe74c80c7526f548bd9ecb976 100644 (file)
--- a/src/screen.c
+++ b/src/screen.c
void
screen_paint(mpdclient_t *c)
{
+ D("screen_paint()\n");
/* paint the title/header window */
if( mode_fn && mode_fn->get_title )
paint_top_window(mode_fn->get_title(screen->buf,screen->buf_size), c, 1);
paint_top_window("", c, 1);
/* paint the main window */
+ wclear(screen->main_window.w);
if( mode_fn && mode_fn->paint )
mode_fn->paint(screen, c);
_("Auto center mode: On") :
_("Auto center mode: Off"));
break;
+ case CMD_SCREEN_UPDATE:
+ screen->painted = 0;
+ break;
case CMD_SCREEN_PREVIOUS:
if( screen->mode > SCREEN_PLAY_WINDOW )
new_mode = screen->mode - 1;
diff --git a/src/screen_file.c b/src/screen_file.c
index 8b79f279f5971d9ee0bd747daf903d43c646ae3a..3fbdf4329678d85aceb26021edd397abf8ed55f4 100644 (file)
--- a/src/screen_file.c
+++ b/src/screen_file.c
handle_delete(screen, c);
break;
case CMD_SCREEN_UPDATE:
+ screen->painted = 0;
+ lw->clear = 1;
+ lw->repaint = 1;
filelist = mpdclient_filelist_update(c, filelist);
list_window_check_selected(lw, filelist->length);
screen_status_printf(_("Screen updated!"));
diff --git a/src/screen_play.c b/src/screen_play.c
index b11229841b2511b5c5de3f64ce947d738cfa2aa1..3478987b55e848da6eea6c92140ff00fcf8405ed 100644 (file)
--- a/src/screen_play.c
+++ b/src/screen_play.c
handle_add_to_playlist(screen, c);
return 1;
case CMD_SCREEN_UPDATE:
+ screen->painted = 0;
+ lw->clear = 1;
+ lw->repaint = 1;
center_playing_item(screen, c);
return 1;
case CMD_LIST_MOVE_UP: