Code

screen: moved refresh() to ncu_init()
authorMax Kellermann <max@duempel.org>
Wed, 30 Sep 2009 05:47:26 +0000 (07:47 +0200)
committerMax Kellermann <max@duempel.org>
Wed, 30 Sep 2009 05:47:26 +0000 (07:47 +0200)
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
src/screen.c

index 2b1721d6d171cb10d181c38460482e2d8a094873..08cb82006f5a7f1c927c14fb64d74ba7878242c1 100644 (file)
--- 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
index 6ab4a60285f6aa23c695b02816a5a2d91cfbda23..bfba41befec02897ae01897c14fcdd44ae5ad613 100644 (file)
@@ -587,7 +587,7 @@ screen_init(struct mpdclient *c)
        }
 #endif
 
-       refresh();
+       doupdate();
 
        /* initialize screens */
        screen_list_init(screen.main_window.w,