diff options
author | Kalle Wallin <kaw@linux.se> | 2004-03-28 14:53:22 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-03-28 14:53:22 +0000 |
commit | b24947b96670b3e2f7fe7d23c06e1ec2b4b7c262 (patch) | |
tree | ed8af27122a4fe4588fc5d69f8a9b68d97d4ac2c | |
parent | 77992b5b09fb048809922d01a8a25885d2ec2685 (diff) | |
download | mpd-b24947b96670b3e2f7fe7d23c06e1ec2b4b7c262.tar.gz mpd-b24947b96670b3e2f7fe7d23c06e1ec2b4b7c262.tar.xz mpd-b24947b96670b3e2f7fe7d23c06e1ec2b4b7c262.zip |
Clear top window when the header changes.
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@521 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r-- | screen.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -68,8 +68,15 @@ static void paint_top_window(char *header, int volume, int clear) { static int prev_volume = -1; + static int prev_header_len = -1; WINDOW *w = screen->top_window.w; + if(prev_header_len!=strlen(header)) + { + prev_header_len = strlen(header); + clear = 1; + } + if(clear) { wclear(w); |