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

Diff for /src/usr.bin/tmux/tty.c between version 1.222 and 1.223

version 1.222, 2017/01/11 23:10:04 version 1.223, 2017/01/12 00:19:32
Line 1609 
Line 1609 
 {  {
         u_char  r, g, b;          u_char  r, g, b;
         u_int   colours;          u_int   colours;
           int     c;
   
         /* Perform substitution if this pane has a palette */          /* Perform substitution if this pane has a palette */
         if ((~gc->flags & GRID_FLAG_NOPALETTE) &&          if ((~gc->flags & GRID_FLAG_NOPALETTE) &&
             gc->fg != 8 && WINDOW_PANE_PALETTE_HAS(wp, gc->fg))              (c = window_pane_get_palette(wp, gc->fg)) != -1)
                 gc->fg = wp->palette[gc->fg & 0xff];                  gc->fg = c;
   
         /* Is this a 24-bit colour? */          /* Is this a 24-bit colour? */
         if (gc->fg & COLOUR_FLAG_RGB) {          if (gc->fg & COLOUR_FLAG_RGB) {
Line 1657 
Line 1658 
 {  {
         u_char  r, g, b;          u_char  r, g, b;
         u_int   colours;          u_int   colours;
           int     c;
   
         /* Perform substitution if this pane has a palette */          /* Perform substitution if this pane has a palette */
         if ((~gc->flags & GRID_FLAG_NOPALETTE) &&          if ((~gc->flags & GRID_FLAG_NOPALETTE) &&
             gc->bg != 8 && WINDOW_PANE_PALETTE_HAS(wp, gc->bg))              (c = window_pane_get_palette(wp, gc->bg)) != -1)
                 gc->bg = wp->palette[gc->bg & 0xff];                  gc->bg = c;
   
         /* Is this a 24-bit colour? */          /* Is this a 24-bit colour? */
         if (gc->bg & COLOUR_FLAG_RGB) {          if (gc->bg & COLOUR_FLAG_RGB) {
Line 1817 
Line 1819 
         struct window           *w = wp->window;          struct window           *w = wp->window;
         struct options          *oo = w->options;          struct options          *oo = w->options;
         const struct grid_cell  *agc, *pgc, *wgc;          const struct grid_cell  *agc, *pgc, *wgc;
           int                      c;
   
         if (w->flags & WINDOW_STYLECHANGED) {          if (w->flags & WINDOW_STYLECHANGED) {
                 w->flags &= ~WINDOW_STYLECHANGED;                  w->flags &= ~WINDOW_STYLECHANGED;
Line 1838 
Line 1841 
                 else                  else
                         gc->fg = wgc->fg;                          gc->fg = wgc->fg;
   
                 if (gc->fg != 8 && WINDOW_PANE_PALETTE_HAS(wp, gc->fg))                  if (gc->fg != 8 &&
                         gc->fg = wp->palette[gc->fg & 0xff];                      (c = window_pane_get_palette(wp, gc->fg)) != -1)
                           gc->fg = c;
         }          }
   
         if (gc->bg == 8) {          if (gc->bg == 8) {
Line 1850 
Line 1854 
                 else                  else
                         gc->bg = wgc->bg;                          gc->bg = wgc->bg;
   
                 if (gc->bg != 8 && WINDOW_PANE_PALETTE_HAS(wp, gc->bg))                  if (gc->bg != 8 &&
                         gc->bg = wp->palette[gc->bg & 0xff];                      (c = window_pane_get_palette(wp, gc->bg)) != -1)
                           gc->bg = c;
         }          }
 }  }
   

Legend:
Removed from v.1.222  
changed lines
  Added in v.1.223