[BACK]Return to display.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

Diff for /src/usr.bin/mg/display.c between version 1.40 and 1.41

version 1.40, 2013/03/25 11:41:44 version 1.41, 2013/05/31 18:03:44
Line 68 
Line 68 
 int     vtputs(const char *);  int     vtputs(const char *);
 void    vteeol(void);  void    vteeol(void);
 void    updext(int, int);  void    updext(int, int);
 void    modeline(struct mgwin *);  void    modeline(struct mgwin *, int);
 void    setscores(int, int);  void    setscores(int, int);
 void    traceback(int, int, int, int);  void    traceback(int, int, int, int);
 void    ucopy(struct video *, struct video *);  void    ucopy(struct video *, struct video *);
Line 403 
Line 403 
  * virtual and physical screens the same.   * virtual and physical screens the same.
  */   */
 void  void
 update(void)  update(int modelinecolor)
 {  {
         struct line     *lp;          struct line     *lp;
         struct mgwin    *wp;          struct mgwin    *wp;
Line 503 
Line 503 
                         }                          }
                 }                  }
                 if ((wp->w_rflag & WFMODE) != 0)                  if ((wp->w_rflag & WFMODE) != 0)
                         modeline(wp);                          modeline(wp, modelinecolor);
                 wp->w_rflag = 0;                  wp->w_rflag = 0;
                 wp->w_frame = 0;                  wp->w_frame = 0;
         }          }
Line 796 
Line 796 
  * characters may never be seen.   * characters may never be seen.
  */   */
 void  void
 modeline(struct mgwin *wp)  modeline(struct mgwin *wp, int modelinecolor)
 {  {
         int     n, md;          int     n, md;
         struct buffer *bp;          struct buffer *bp;
Line 804 
Line 804 
         int len;          int len;
   
         n = wp->w_toprow + wp->w_ntrows;        /* Location.             */          n = wp->w_toprow + wp->w_ntrows;        /* Location.             */
         vscreen[n]->v_color = CMODE;            /* Mode line color.      */          vscreen[n]->v_color = modelinecolor;    /* Mode line color.      */
         vscreen[n]->v_flag |= (VFCHG | VFHBAD); /* Recompute, display.   */          vscreen[n]->v_flag |= (VFCHG | VFHBAD); /* Recompute, display.   */
         vtmove(n, 0);                           /* Seek to right line.   */          vtmove(n, 0);                           /* Seek to right line.   */
         bp = wp->w_bufp;          bp = wp->w_bufp;

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41