Lines Matching defs:gc2
2564 struct grid_cell *tc = &tty->cell, gc2;
2568 memcpy(&gc2, gc, sizeof gc2);
2570 if (gc2.fg == 8)
2571 gc2.fg = defaults->fg;
2572 if (gc2.bg == 8)
2573 gc2.bg = defaults->bg;
2577 if (gc2.attr == tty->last_cell.attr &&
2578 gc2.fg == tty->last_cell.fg &&
2579 gc2.bg == tty->last_cell.bg &&
2580 gc2.us == tty->last_cell.us &&
2581 gc2.link == tty->last_cell.link)
2590 if (gc2.attr & GRID_ATTR_REVERSE) {
2591 if (gc2.fg != 7 && !COLOUR_DEFAULT(gc2.fg))
2592 gc2.attr &= ~GRID_ATTR_REVERSE;
2594 if (gc2.bg != 0 && !COLOUR_DEFAULT(gc2.bg))
2595 gc2.attr |= GRID_ATTR_REVERSE;
2600 tty_check_fg(tty, palette, &gc2);
2601 tty_check_bg(tty, palette, &gc2);
2602 tty_check_us(tty, palette, &gc2);
2608 if ((tc->attr & ~gc2.attr) || (tc->us != gc2.us && gc2.us == 0))
2615 tty_colours(tty, &gc2);
2618 changed = gc2.attr & ~tc->attr;
2619 tc->attr = gc2.attr;
2661 memcpy(&tty->last_cell, &gc2, sizeof tty->last_cell);