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

Diff for /src/usr.bin/tmux/screen-redraw.c between version 1.75 and 1.76

version 1.75, 2020/05/16 15:01:31 version 1.76, 2020/05/16 15:34:08
Line 346 
Line 346 
         screen_init(&wp->status_screen, width, 1, 0);          screen_init(&wp->status_screen, width, 1, 0);
         wp->status_screen.mode = 0;          wp->status_screen.mode = 0;
   
         screen_write_start(&ctx, NULL, &wp->status_screen);          screen_write_start(&ctx, &wp->status_screen);
   
         gc.attr |= GRID_ATTR_CHARSET;          gc.attr |= GRID_ATTR_CHARSET;
         for (i = 0; i < width; i++)          for (i = 0; i < width; i++)
Line 423 
Line 423 
   
                 if (ctx->statustop)                  if (ctx->statustop)
                         yoff += ctx->statuslines;                          yoff += ctx->statuslines;
                 tty_draw_line(tty, NULL, s, i, 0, width, x, yoff - ctx->oy);                  tty_draw_line(tty, s, i, 0, width, x, yoff - ctx->oy,
                       &grid_default_cell, NULL);
         }          }
         tty_cursor(tty, 0, 0);          tty_cursor(tty, 0, 0);
 }  }
Line 615 
Line 616 
                 }                  }
         }          }
   
         tty_attributes(tty, gc, NULL);          tty_attributes(tty, gc, &grid_default_cell, NULL);
         if (ctx->statustop)          if (ctx->statustop)
                 tty_cursor(tty, i, ctx->statuslines + j);                  tty_cursor(tty, i, ctx->statuslines + j);
         else          else
Line 676 
Line 677 
                 y = 0;                  y = 0;
         else          else
                 y = c->tty.sy - ctx->statuslines;                  y = c->tty.sy - ctx->statuslines;
         for (i = 0; i < ctx->statuslines; i++)          for (i = 0; i < ctx->statuslines; i++) {
                 tty_draw_line(tty, NULL, s, 0, i, UINT_MAX, 0, y + i);                  tty_draw_line(tty, s, 0, i, UINT_MAX, 0, y + i,
                       &grid_default_cell, NULL);
           }
 }  }
   
 /* Draw one pane. */  /* Draw one pane. */
Line 688 
Line 691 
         struct window   *w = c->session->curw->window;          struct window   *w = c->session->curw->window;
         struct tty      *tty = &c->tty;          struct tty      *tty = &c->tty;
         struct screen   *s;          struct screen   *s;
           struct grid_cell defaults;
         u_int            i, j, top, x, y, width;          u_int            i, j, top, x, y, width;
   
         log_debug("%s: %s @%u %%%u", __func__, c->name, w->id, wp->id);          log_debug("%s: %s @%u %%%u", __func__, c->name, w->id, wp->id);
Line 731 
Line 735 
                 log_debug("%s: %s %%%u line %u,%u at %u,%u, width %u",                  log_debug("%s: %s %%%u line %u,%u at %u,%u, width %u",
                     __func__, c->name, wp->id, i, j, x, y, width);                      __func__, c->name, wp->id, i, j, x, y, width);
   
                 tty_draw_line(tty, wp, s, i, j, width, x, y);                  tty_default_colours(&defaults, wp);
                   tty_draw_line(tty, s, i, j, width, x, y, &defaults,
                       wp->palette);
         }          }
 }  }

Legend:
Removed from v.1.75  
changed lines
  Added in v.1.76