[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.29 and 1.30

version 1.29, 2015/02/06 15:09:34 version 1.30, 2015/04/19 21:05:27
Line 266 
Line 266 
                 yoff++;                  yoff++;
   
         for (i = 0; i < wp->sy; i++)          for (i = 0; i < wp->sy; i++)
                 tty_draw_line(&c->tty, wp->screen, i, wp->xoff, yoff);                  tty_draw_pane(&c->tty, wp, i, wp->xoff, yoff);
         tty_reset(&c->tty);          tty_reset(&c->tty);
 }  }
   
Line 323 
Line 323 
                             small && i > msgx && j == msgy)                              small && i > msgx && j == msgy)
                                 continue;                                  continue;
                         if (screen_redraw_check_active(i, j, type, w, wp))                          if (screen_redraw_check_active(i, j, type, w, wp))
                                 tty_attributes(tty, &active_gc);                                  tty_attributes(tty, &active_gc, NULL);
                         else                          else
                                 tty_attributes(tty, &other_gc);                                  tty_attributes(tty, &other_gc, NULL);
                         tty_cursor(tty, i, top + j);                          tty_cursor(tty, i, top + j);
                         tty_putc(tty, CELL_BORDERS[type]);                          tty_putc(tty, CELL_BORDERS[type]);
                 }                  }
Line 333 
Line 333 
   
         if (small) {          if (small) {
                 memcpy(&msg_gc, &grid_default_cell, sizeof msg_gc);                  memcpy(&msg_gc, &grid_default_cell, sizeof msg_gc);
                 tty_attributes(tty, &msg_gc);                  tty_attributes(tty, &msg_gc, NULL);
                 tty_cursor(tty, msgx, msgy);                  tty_cursor(tty, msgx, msgy);
                 tty_puts(tty, msg);                  tty_puts(tty, msg);
         }          }
Line 346 
Line 346 
         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 window_pane      *wp;          struct window_pane      *wp;
         struct screen           *s;  
         u_int                    i;          u_int                    i;
   
         TAILQ_FOREACH(wp, &w->panes, entry) {          TAILQ_FOREACH(wp, &w->panes, entry) {
                 if (!window_pane_visible(wp))                  if (!window_pane_visible(wp))
                         continue;                          continue;
                 s = wp->screen;  
                 for (i = 0; i < wp->sy; i++)                  for (i = 0; i < wp->sy; i++)
                         tty_draw_line(tty, s, i, wp->xoff, top + wp->yoff);                          tty_draw_pane(tty, wp, i, wp->xoff, top + wp->yoff);
                 if (c->flags & CLIENT_IDENTIFY)                  if (c->flags & CLIENT_IDENTIFY)
                         screen_redraw_draw_number(c, wp);                          screen_redraw_draw_number(c, wp);
         }          }
Line 367 
Line 365 
         struct tty      *tty = &c->tty;          struct tty      *tty = &c->tty;
   
         if (top)          if (top)
                 tty_draw_line(tty, &c->status, 0, 0, 0);                  tty_draw_line(tty, NULL, &c->status, 0, 0, 0);
         else          else
                 tty_draw_line(tty, &c->status, 0, 0, tty->sy - 1);                  tty_draw_line(tty, NULL, &c->status, 0, 0, tty->sy - 1);
 }  }
   
 /* Draw number on a pane. */  /* Draw number on a pane. */
Line 411 
Line 409 
                 colour_set_bg(&gc, active_colour);                  colour_set_bg(&gc, active_colour);
         else          else
                 colour_set_bg(&gc, colour);                  colour_set_bg(&gc, colour);
         tty_attributes(tty, &gc);          tty_attributes(tty, &gc, wp);
         for (ptr = buf; *ptr != '\0'; ptr++) {          for (ptr = buf; *ptr != '\0'; ptr++) {
                 if (*ptr < '0' || *ptr > '9')                  if (*ptr < '0' || *ptr > '9')
                         continue;                          continue;
Line 438 
Line 436 
                 colour_set_fg(&gc, active_colour);                  colour_set_fg(&gc, active_colour);
         else          else
                 colour_set_fg(&gc, colour);                  colour_set_fg(&gc, colour);
         tty_attributes(tty, &gc);          tty_attributes(tty, &gc, wp);
         tty_puts(tty, buf);          tty_puts(tty, buf);
   
         tty_cursor(tty, 0, 0);          tty_cursor(tty, 0, 0);

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30