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

Diff for /src/usr.bin/tmux/Attic/clock.c between version 1.1 and 1.2

version 1.1, 2009/06/01 22:58:49 version 1.2, 2009/08/26 16:16:06
Line 113 
Line 113 
   
         screen_write_clearscreen(ctx);          screen_write_clearscreen(ctx);
         memcpy(&gc, &grid_default_cell, sizeof gc);          memcpy(&gc, &grid_default_cell, sizeof gc);
         gc.fg = colour;          gc.bg = colour;
   
         if (screen_size_x(s) < 6 * strlen(tim) || screen_size_y(s) < 6) {          if (screen_size_x(s) < 6 * strlen(tim) || screen_size_y(s) < 6) {
                 if (screen_size_x(s) >= strlen(tim) && screen_size_y(s) != 0) {                  if (screen_size_x(s) >= strlen(tim) && screen_size_y(s) != 0) {
Line 147 
Line 147 
                 }                  }
   
                 for (j = 0; j < 5; j++) {                  for (j = 0; j < 5; j++) {
                         screen_write_cursormove(ctx, x, y + j);  
                         for (i = 0; i < 5; i++) {                          for (i = 0; i < 5; i++) {
                                   screen_write_cursormove(ctx, x + i, y + j);
                                 if (clock_table[idx][j][i])                                  if (clock_table[idx][j][i])
                                         gc.attr |= GRID_ATTR_REVERSE;                                          screen_write_putc(ctx, &gc, ' ');
                                 else  
                                         gc.attr &= ~GRID_ATTR_REVERSE;  
                                 screen_write_putc(ctx, &gc, ' ');  
                         }                          }
                 }                  }
                 x += 6;                  x += 6;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2