Still some fixes for curseses without wresize() or resizeterm().

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@579 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-08-10 20:01:32 +00:00 committed by cras
commit 92e0995223
3 changed files with 23 additions and 2 deletions

View file

@ -65,11 +65,12 @@ static void sig_winch(int p)
/* Resize curses terminal */
ychange = ws.ws_row-LINES;
xchange = ws.ws_col-COLS;
#ifdef HAVE_CURSES_RESIZETERM
#ifdef xHAVE_CURSES_RESIZETERM
resizeterm(ws.ws_row, ws.ws_col);
#else
deinit_screen();
init_screen();
mainwindows_recreate();
#endif
mainwindows_resize(ychange, xchange != 0);