[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.199 and 1.200

version 1.199, 2021/08/17 08:44:52 version 1.200, 2021/10/13 09:28:36
Line 645 
Line 645 
   
         memcpy(&default_gc, &grid_default_cell, sizeof default_gc);          memcpy(&default_gc, &grid_default_cell, sizeof default_gc);
   
         screen_write_box(ctx, menu->width + 4, menu->count + 2);          screen_write_box(ctx, menu->width + 4, menu->count + 2, NULL);
         screen_write_cursormove(ctx, cx + 2, cy, 0);          screen_write_cursormove(ctx, cx + 2, cy, 0);
         format_draw(ctx, &default_gc, menu->width, menu->title, NULL);          format_draw(ctx, &default_gc, menu->width, menu->title, NULL);
   
Line 677 
Line 677 
   
 /* Draw a box on screen. */  /* Draw a box on screen. */
 void  void
 screen_write_box(struct screen_write_ctx *ctx, u_int nx, u_int ny)  screen_write_box(struct screen_write_ctx *ctx, u_int nx, u_int ny,
       const struct grid_cell *gcp)
 {  {
         struct screen           *s = ctx->s;          struct screen           *s = ctx->s;
         struct grid_cell         gc;          struct grid_cell         gc;
         u_int                    cx, cy, i;          u_int                    cx, cy, i;
   
         cx = s->cx;          cx = s->cx;
         cy = s->cy;          cy = s->cy;
   
         memcpy(&gc, &grid_default_cell, sizeof gc);          if (gcp != NULL)
                   memcpy(&gc, gcp, sizeof gc);
           else
                   memcpy(&gc, &grid_default_cell, sizeof gc);
         gc.attr |= GRID_ATTR_CHARSET;          gc.attr |= GRID_ATTR_CHARSET;
         gc.flags |= GRID_FLAG_NOPALETTE;          gc.flags |= GRID_FLAG_NOPALETTE;
   

Legend:
Removed from v.1.199  
changed lines
  Added in v.1.200