mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-24 07:45:21 +00:00
When resizing, we need to change the saved (if any) def_prog_mode() details.
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef PDCDEBUG
|
||||
char *rcsid_initscr = "$Id: initscr.c,v 1.3 2002/01/12 04:04:18 mark Exp $";
|
||||
char *rcsid_initscr = "$Id: initscr.c,v 1.4 2002/12/16 06:58:09 mark Exp $";
|
||||
#else
|
||||
char* _curses_notice = "PDCurses 2.2 - Public Domain 1994";
|
||||
#endif
|
||||
@@ -671,6 +671,15 @@ int nlines,ncols;
|
||||
LINES = SP->lines - SP->linesrippedoff - SP->slklines;
|
||||
SP->cols = COLS = PDC_get_columns();
|
||||
|
||||
/*
|
||||
* We need to change the saved prog_mode details...
|
||||
*/
|
||||
if ( c_pr_tty.been_set )
|
||||
{
|
||||
c_pr_tty.saved.lines = SP->lines;
|
||||
c_pr_tty.saved.cols = SP->cols;
|
||||
}
|
||||
|
||||
if ((curscr = resize_window(curscr, SP->lines, SP->cols)) == NULL)
|
||||
return (ERR);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user