From b1f77e2684e85fac5ef5d50fc1342d7d53e5a492 Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Wed, 21 Apr 2004 19:06:18 +0000 Subject: Fixed resize handling (SIGWINCH). git-svn-id: https://svn.musicpd.org/ncmpc/trunk@871 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- screen_play.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'screen_play.c') diff --git a/screen_play.c b/screen_play.c index 5669d3641..eb1048951 100644 --- a/screen_play.c +++ b/screen_play.c @@ -133,6 +133,14 @@ play_init(WINDOW *w, int cols, int rows) lw = list_window_init(w, cols, rows); } +static void +play_resize(int cols, int rows) +{ + lw->cols = cols; + lw->rows = rows; +} + + static void play_exit(void) { @@ -251,6 +259,7 @@ get_screen_playlist(void) functions.exit = play_exit; functions.open = NULL; functions.close = NULL; + functions.resize = play_resize; functions.paint = play_paint; functions.update = play_update; functions.cmd = play_cmd; -- cgit v1.2.3