Code

screen.c: If compiling with PDCURSES, use resize_term() to resize
authorAvuton Olrich <avuton@gmail.com>
Sun, 30 Oct 2011 01:21:44 +0000 (18:21 -0700)
committerAvuton Olrich <avuton@gmail.com>
Thu, 3 Nov 2011 02:33:50 +0000 (19:33 -0700)
src/screen.c

index 4d897581e5ea86138155dfe96eca7d175f329bc7..2d8ab6a955782c69ce62d8dc4c048b9b40213a39 100644 (file)
@@ -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;