From: Max Kellermann Date: Mon, 20 Mar 2017 15:37:45 +0000 (+0100) Subject: screen: remove unnecessary paint calls from screen_resize() X-Git-Tag: v0.27~46 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=93001c8e449461edaf891bee4d371dc0da57d38a;p=ncmpc.git screen: remove unnecessary paint calls from screen_resize() This will be done again by the following screen_paint() call. --- diff --git a/src/screen.c b/src/screen.c index b6f6300..793eec9 100644 --- a/src/screen.c +++ b/src/screen.c @@ -219,16 +219,13 @@ screen_resize(struct mpdclient *c) screen.main_window.cols = screen.cols; screen.main_window.rows = screen.rows-4; wresize(screen.main_window.w, screen.main_window.rows, screen.cols); - wclear(screen.main_window.w); /* progress window */ progress_bar_resize(&screen.progress_bar, screen.cols, screen.rows - 2, 0); - progress_bar_paint(&screen.progress_bar); /* status window */ status_bar_resize(&screen.status_bar, screen.cols, screen.rows - 1, 0); - status_bar_paint(&screen.status_bar, c->status, c->song); screen.buf_size = screen.cols; g_free(screen.buf);