From d63eae4117d54bdbcecefeab59f09c0a97d98b79 Mon Sep 17 00:00:00 2001 From: Avuton Olrich Date: Sat, 29 Oct 2011 18:21:44 -0700 Subject: [PATCH] screen.c: If compiling with PDCURSES, use resize_term() to resize --- src/screen.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.30.2