Code

screen: remove unnecessary paint calls from screen_init()
authorMax Kellermann <max.kellermann@gmail.com>
Mon, 20 Mar 2017 15:35:07 +0000 (16:35 +0100)
committerMax Kellermann <max.kellermann@gmail.com>
Mon, 20 Mar 2017 15:35:07 +0000 (16:35 +0100)
This will be painted right before entering the main loop.

src/screen.c

index 1646282ac053aa6046be5c88459ca751c8204c6b..b6f63007e6eea1b7a0add973c5c13a3f239b93a0 100644 (file)
@@ -300,11 +300,9 @@ screen_init(struct mpdclient *c)
        /* create progress window */
        progress_bar_init(&screen.progress_bar, screen.cols,
                          screen.rows - 2, 0);
-       progress_bar_paint(&screen.progress_bar);
 
        /* create status window */
        status_bar_init(&screen.status_bar, screen.cols, screen.rows - 1, 0);
-       status_bar_paint(&screen.status_bar, c->status, c->song);
 
 #ifdef ENABLE_COLORS
        if (options.enable_colors) {