aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen.c
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-06-22 15:14:34 +0000
committerKalle Wallin <kaw@linux.se>2004-06-22 15:14:34 +0000
commit0884a2374860cbd1fad2b26443943ebd7765ec34 (patch)
tree08e3c27a4d8dd12dfb76c9dd7f36e42318b98700 /src/screen.c
parent950aa3b9d1d34cd93af1624d65c52b66dc9e9fa2 (diff)
downloadmpd-0884a2374860cbd1fad2b26443943ebd7765ec34.tar.gz
mpd-0884a2374860cbd1fad2b26443943ebd7765ec34.tar.xz
mpd-0884a2374860cbd1fad2b26443943ebd7765ec34.zip
Clear the main window on CMD_SCREEN_UPDATE
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1617 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c
index 8d517c950..ba155a4cf 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -590,6 +590,7 @@ screen_init(mpdclient_t *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);
@@ -597,6 +598,7 @@ screen_paint(mpdclient_t *c)
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);
@@ -808,6 +810,9 @@ screen_cmd(mpdclient_t *c, command_t cmd)
_("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;