[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.10 and 1.11

version 1.10, 2009/08/31 20:46:19 version 1.11, 2009/09/10 17:16:24
Line 240 
Line 240 
         struct session          *s = c->session;          struct session          *s = c->session;
         struct grid_cell         gc;          struct grid_cell         gc;
         u_int                    idx, px, py, i, j;          u_int                    idx, px, py, i, j;
         u_char                   colour;          int                      colour;
         char                     buf[16], *ptr;          char                     buf[16], *ptr;
         size_t                   len;          size_t                   len;
   
Line 256 
Line 256 
         if (wp->sx < len * 6 || wp->sy < 5) {          if (wp->sx < len * 6 || wp->sy < 5) {
                 tty_cursor(tty, px - len / 2, py, wp->xoff, wp->yoff);                  tty_cursor(tty, px - len / 2, py, wp->xoff, wp->yoff);
                 memcpy(&gc, &grid_default_cell, sizeof gc);                  memcpy(&gc, &grid_default_cell, sizeof gc);
                 gc.fg = colour;                  colour_set_fg(&gc, colour);
                 tty_attributes(tty, &gc);                  tty_attributes(tty, &gc);
                 tty_puts(tty, buf);                  tty_puts(tty, buf);
                 return;                  return;
Line 266 
Line 266 
         py -= 2;          py -= 2;
   
         memcpy(&gc, &grid_default_cell, sizeof gc);          memcpy(&gc, &grid_default_cell, sizeof gc);
         gc.bg = colour;          colour_set_bg(&gc, colour);
         tty_attributes(tty, &gc);          tty_attributes(tty, &gc);
         for (ptr = buf; *ptr != '\0'; ptr++) {          for (ptr = buf; *ptr != '\0'; ptr++) {
                 if (*ptr < '0' || *ptr > '9')                  if (*ptr < '0' || *ptr > '9')
Line 276 
Line 276 
                 for (j = 0; j < 5; j++) {                  for (j = 0; j < 5; j++) {
                         for (i = px; i < px + 5; i++) {                          for (i = px; i < px + 5; i++) {
                                 tty_cursor(tty, i, py + j, wp->xoff, wp->yoff);                                  tty_cursor(tty, i, py + j, wp->xoff, wp->yoff);
                                 if (!clock_table[idx][j][i - px])                                  if (clock_table[idx][j][i - px])
                                         continue;                                          tty_putc(tty, ' ');
                                 tty_putc(tty, ' ');  
                         }                          }
                 }                  }
                 px += 6;                  px += 6;

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11