[BACK]Return to tstp.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libcurses

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libcurses/tstp.c between version 1.36 and 1.37

version 1.36, 2007/08/27 19:54:29 version 1.37, 2009/07/22 16:57:15
Line 253  void
Line 253  void
 __restartwin(void)  __restartwin(void)
 {  {
         struct winsize win;          struct winsize win;
         int lines, cols;          int nlines, ncols;
   
 #ifdef DEBUG  #ifdef DEBUG
         __CTRACE(__CTRACE_MISC, "__restartwin\n");          __CTRACE(__CTRACE_MISC, "__restartwin\n");
Line 287  __restartwin(void)
Line 287  __restartwin(void)
          * We need to make local copies of LINES and COLS, otherwise we           * We need to make local copies of LINES and COLS, otherwise we
          * could lose if they are changed between wresize() calls.           * could lose if they are changed between wresize() calls.
          */           */
         lines = LINES;          nlines = LINES;
         cols = COLS;          ncols = COLS;
         if (curscr->maxy != lines || curscr->maxx != cols)          if (curscr->maxy != nlines || curscr->maxx != ncols)
                 wresize(curscr, lines, cols);                  wresize(curscr, nlines, ncols);
         if (stdscr->maxy != lines || stdscr->maxx != cols)          if (stdscr->maxy != nlines || stdscr->maxx != ncols)
                 wresize(stdscr, lines, cols);                  wresize(stdscr, nlines, ncols);
   
         /* save the new "default" terminal state */          /* save the new "default" terminal state */
         (void) tcgetattr(fileno(_cursesi_screen->infd),          (void) tcgetattr(fileno(_cursesi_screen->infd),

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

CVSweb <webmaster@jp.NetBSD.org>