From: Avuton Olrich Date: Sun, 30 Oct 2011 01:21:44 +0000 (-0700) Subject: screen.c: If compiling with PDCURSES, use resize_term() to resize X-Git-Tag: release-0.20~67 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d63eae4117d54bdbcecefeab59f09c0a97d98b79;p=ncmpc.git screen.c: If compiling with PDCURSES, use resize_term() to resize --- diff --git a/src/screen.c b/src/screen.c index 4d89758..2d8ab6a 100644 --- a/src/screen.c +++ b/src/screen.c @@ -205,8 +205,11 @@ screen_resize(struct mpdclient *c) fprintf(stderr, "%s", _("Error: Screen too small")); exit(EXIT_FAILURE); } - +#ifdef PDCURSES + resize_term(LINES, COLS); +#else resizeterm(LINES, COLS); +#endif screen.cols = COLS; screen.rows = LINES;