From cb11ae2f56f4caff86234c6437a9e6c699840250 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Sep 2009 07:47:26 +0200 Subject: [PATCH] screen: moved refresh() to ncu_init() The ncurses initialization code should do the refresh() to clear the terminal, while screen_init() should reveal the empty controls (progress bar currently). --- src/ncu.c | 2 ++ src/screen.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ncu.c b/src/ncu.c index 2b1721d..08cb820 100644 --- a/src/ncu.c +++ b/src/ncu.c @@ -64,6 +64,8 @@ ncu_init(void) if (options.enable_mouse) mousemask(ALL_MOUSE_EVENTS, NULL); #endif + + refresh(); } void diff --git a/src/screen.c b/src/screen.c index 6ab4a60..bfba41b 100644 --- a/src/screen.c +++ b/src/screen.c @@ -587,7 +587,7 @@ screen_init(struct mpdclient *c) } #endif - refresh(); + doupdate(); /* initialize screens */ screen_list_init(screen.main_window.w, -- 2.30.2