From: Max Kellermann Date: Wed, 30 Sep 2009 05:47:26 +0000 (+0200) Subject: screen: moved refresh() to ncu_init() X-Git-Tag: release-0.16~287 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cb11ae2f56f4caff86234c6437a9e6c699840250;p=ncmpc.git 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). --- 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,