[BACK]Return to refresh.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/refresh.c between version 1.7.2.2 and 1.8

version 1.7.2.2, 1994/08/17 21:52:41 version 1.8, 1997/07/22 07:36:59
Line 1 
Line 1 
   /*      $NetBSD$        */
   
 /*  /*
  * Copyright (c) 1981, 1993, 1994   * Copyright (c) 1981, 1993, 1994
  *      The Regents of the University of California.  All rights reserved.   *      The Regents of the University of California.  All rights reserved.
Line 31 
Line 33 
  * SUCH DAMAGE.   * SUCH DAMAGE.
  */   */
   
   #include <sys/cdefs.h>
 #ifndef lint  #ifndef lint
   #if 0
 static char sccsid[] = "@(#)refresh.c   8.7 (Berkeley) 8/13/94";  static char sccsid[] = "@(#)refresh.c   8.7 (Berkeley) 8/13/94";
   #else
   __RCSID("$NetBSD$");
   #endif
 #endif /* not lint */  #endif /* not lint */
   
 #include <string.h>  #include <string.h>
Line 224  makech(win, wy)
Line 231  makech(win, wy)
         int lch, wx, y;          int lch, wx, y;
         char *ce;          char *ce;
   
   #ifdef __GNUC__
           nlsp = 0;               /* XXX gcc -Wuninitialized */
   #endif
         /* Is the cursor still on the end of the last line? */          /* Is the cursor still on the end of the last line? */
         if (wy > 0 && win->lines[wy - 1]->flags & __ISPASTEOL) {          if (wy > 0 && win->lines[wy - 1]->flags & __ISPASTEOL) {
                 domvcur(ly, lx, ly + 1, 0);                  domvcur(ly, lx, ly + 1, 0);
Line 451  quickch(win)
Line 461  quickch(win)
         __LDATA buf[1024];          __LDATA buf[1024];
         u_int blank_hash;          u_int blank_hash;
   
   #ifdef __GNUC__
           curs = curw = starts = startw = 0; /* XXX gcc -Wuninitialized */
   #endif
         /*          /*
          * Find how many lines from the top of the screen are unchanged.           * Find how many lines from the top of the screen are unchanged.
          */           */
Line 724  scrolln(win, starts, startw, curs, bot, 
Line 737  scrolln(win, starts, startw, curs, bot, 
          */           */
         if (n > 0) {          if (n > 0) {
                 if (CS != NULL && HO != NULL && (SF != NULL ||                  if (CS != NULL && HO != NULL && (SF != NULL ||
                     (AL == NULL || DL == NULL ||                      ((AL == NULL || DL == NULL ||
                     top > 3 || bot + 3 < win->maxy) && sf != NULL)) {                      top > 3 || bot + 3 < win->maxy) && sf != NULL))) {
                         tputs(__tscroll(CS, top, bot + 1), 0, __cputchar);                          tputs(__tscroll(CS, top, bot + 1), 0, __cputchar);
                         __mvcur(oy, ox, 0, 0, 1);                          __mvcur(oy, ox, 0, 0, 1);
                         tputs(HO, 0, __cputchar);                          tputs(HO, 0, __cputchar);
Line 779  scrolln(win, starts, startw, curs, bot, 
Line 792  scrolln(win, starts, startw, curs, bot, 
                  * See the above comments for details.                   * See the above comments for details.
                  */                   */
                 if (CS != NULL && HO != NULL && (SR != NULL ||                  if (CS != NULL && HO != NULL && (SR != NULL ||
                     (AL == NULL || DL == NULL ||                      ((AL == NULL || DL == NULL ||
                     top > 3 || bot + 3 < win->maxy) && sr != NULL)) {                      top > 3 || bot + 3 < win->maxy) && sr != NULL))) {
                         tputs(__tscroll(CS, top, bot + 1), 0, __cputchar);                          tputs(__tscroll(CS, top, bot + 1), 0, __cputchar);
                         __mvcur(oy, ox, 0, 0, 1);                          __mvcur(oy, ox, 0, 0, 1);
                         tputs(HO, 0, __cputchar);                          tputs(HO, 0, __cputchar);

Legend:
Removed from v.1.7.2.2  
changed lines
  Added in v.1.8

CVSweb <webmaster@jp.NetBSD.org>