[BACK]Return to resize.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/resize.c between version 1.17 and 1.18

version 1.17, 2007/11/08 06:34:34 version 1.18, 2008/04/14 20:33:41
Line 69  wresize(WINDOW *win, int req_nlines, int
Line 69  wresize(WINDOW *win, int req_nlines, int
         __CTRACE(__CTRACE_WINDOW, "wresize: (%p, %d, %d)\n",          __CTRACE(__CTRACE_WINDOW, "wresize: (%p, %d, %d)\n",
             win, nlines, ncols);              win, nlines, ncols);
 #endif  #endif
         nlines = req_nlines;  
         ncols = req_ncols;  
         if (win->orig == NULL) {          if (win->orig == NULL) {
                 /* bound "our" windows by the screen size */                  /* bound "our" windows by the screen size */
                 if (win == curscr || win == __virtscr || win == stdscr) {                  if (win == curscr || win == __virtscr || win == stdscr) {
Line 147  resizeterm(int nlines, int ncols)
Line 145  resizeterm(int nlines, int ncols)
         WINDOW *win;          WINDOW *win;
         struct __winlist *list;          struct __winlist *list;
   
           /* don't worry if things have not changed... we would like to  
              do this but some bastard programs update LINES and COLS before  
              calling resizeterm thus negating it's effect.  
         if ((nlines == LINES) && (ncols == COLS))  
         return OK;*/  
   
 #ifdef  DEBUG  #ifdef  DEBUG
         __CTRACE(__CTRACE_WINDOW, "resizeterm: (%d, %d)\n", nlines, ncols);          __CTRACE(__CTRACE_WINDOW, "resizeterm: (%d, %d)\n", nlines, ncols);
 #endif  #endif
Line 302  __resizewin(WINDOW *win, int nlines, int
Line 294  __resizewin(WINDOW *win, int nlines, int
         win->cury = win->curx = 0;          win->cury = win->curx = 0;
         win->maxy = nlines;          win->maxy = nlines;
         win->maxx = ncols;          win->maxx = ncols;
         win->scr_b = win->maxy - 1;          if (win->scr_b >= win->maxy)
                   win->scr_b = win->maxy - 1;
         __swflags(win);          __swflags(win);
   
           /*            /*

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

CVSweb <webmaster@jp.NetBSD.org>