[BACK]Return to screen-write.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/screen-write.c between version 1.104 and 1.105

version 1.104, 2017/02/06 13:23:00 version 1.105, 2017/02/06 19:26:49
Line 971 
Line 971 
   
 /* Clear to start of screen. */  /* Clear to start of screen. */
 void  void
 screen_write_clearstartofscreen(struct screen_write_ctx *ctx)  screen_write_clearstartofscreen(struct screen_write_ctx *ctx, u_int bg)
 {  {
         struct screen   *s = ctx->s;          struct screen   *s = ctx->s;
         struct tty_ctx   ttyctx;          struct tty_ctx   ttyctx;
         u_int            sx = screen_size_x(s);          u_int            sx = screen_size_x(s);
   
         screen_write_initctx(ctx, &ttyctx);          screen_write_initctx(ctx, &ttyctx);
           ttyctx.bg = bg;
   
         if (s->cy > 0) {          if (s->cy > 0) {
                 screen_dirty_clear(s, 0, 0, sx - 1, s->cy);                  screen_dirty_clear(s, 0, 0, sx - 1, s->cy);
                 grid_view_clear(s->grid, 0, 0, sx, s->cy, 8);                  grid_view_clear(s->grid, 0, 0, sx, s->cy, bg);
         }          }
         if (s->cx > sx - 1) {          if (s->cx > sx - 1) {
                 screen_dirty_clear(s, 0, s->cy, sx - 1, s->cy);                  screen_dirty_clear(s, 0, s->cy, sx - 1, s->cy);
                 grid_view_clear(s->grid, 0, s->cy, sx, 1, 8);                  grid_view_clear(s->grid, 0, s->cy, sx, 1, bg);
         } else {          } else {
                 screen_dirty_clear(s, 0, s->cy, s->cx, s->cy);                  screen_dirty_clear(s, 0, s->cy, s->cx, s->cy);
                 grid_view_clear(s->grid, 0, s->cy, s->cx + 1, 1, 8);                  grid_view_clear(s->grid, 0, s->cy, s->cx + 1, 1, bg);
         }          }
   
         tty_write(tty_cmd_clearstartofscreen, &ttyctx);          tty_write(tty_cmd_clearstartofscreen, &ttyctx);

Legend:
Removed from v.1.104  
changed lines
  Added in v.1.105