Lines Matching refs:bg
59 VTermColor bg; member
1702 attr->bg = cell->bg; in cell2cellattr()
1713 && a->bg.red == b->bg.red in equal_celattr()
1714 && a->bg.green == b->bg.green in equal_celattr()
1715 && a->bg.blue == b->bg.blue; in equal_celattr()
1945 &term->tl_default_color.fg, &term->tl_default_color.bg); in may_move_terminal_to_buffer()
2341 term_get_cursor_shape(guicolor_T *fg, guicolor_T *bg) in term_get_cursor_shape() argument
2374 *bg = term_fg; in term_get_cursor_shape()
2376 *bg = gui.norm_pixel; in term_get_cursor_shape()
2379 *bg = color_name2handle(term->tl_cursor_color); in term_get_cursor_shape()
2873 VTermColor *bg = cellbg; in cell2attr() local
2875 int is_default_bg = VTERM_COLOR_IS_DEFAULT_BG(bg); in cell2attr()
2884 bg = &wp->w_term_wincolor.bg; in cell2attr()
2891 bg = &term->tl_default_color.bg; in cell2attr()
2899 guicolor_T guibg = gui_mch_get_rgb_color(bg->red, bg->green, bg->blue); in cell2attr()
2910 guicolor_T tgcbg = VTERM_COLOR_IS_INVALID(bg) in cell2attr()
2912 : gui_get_rgb_color_cmn(bg->red, bg->green, bg->blue); in cell2attr()
2920 int ctermbg = color2index(bg, FALSE, &bold); in cell2attr()
2962 VTermColor fg, bg; in term_scroll_up() local
2974 &fg, &bg); in term_scroll_up()
2975 clear_attr = cell2attr(term, wp, &attr, &fg, &bg); in term_scroll_up()
3621 &cell.bg); in term_line2screenline()
3881 return cell2attr(term, wp, &cellattr->attrs, &cellattr->fg, &cellattr->bg); in term_get_attr()
3907 get_vterm_color_from_synid(int id, VTermColor *fg, VTermColor *bg) in get_vterm_color_from_synid() argument
3944 bg->red = (unsigned)(rgb >> 16); in get_vterm_color_from_synid()
3945 bg->green = (unsigned)(rgb >> 8) & 255; in get_vterm_color_from_synid()
3946 bg->blue = (unsigned)rgb & 255; in get_vterm_color_from_synid()
3947 bg->type = VTERM_COLOR_RGB | VTERM_COLOR_DEFAULT_BG; in get_vterm_color_from_synid()
3950 bg->type = VTERM_COLOR_INVALID | VTERM_COLOR_DEFAULT_BG; in get_vterm_color_from_synid()
3974 cterm_color2vterm(cterm_bg, bg); in get_vterm_color_from_synid()
3975 bg->type |= VTERM_COLOR_DEFAULT_BG; in get_vterm_color_from_synid()
3978 bg->type = VTERM_COLOR_INVALID | VTERM_COLOR_DEFAULT_BG; in get_vterm_color_from_synid()
3990 wp->w_term_wincolor.bg.type = VTERM_COLOR_INVALID | VTERM_COLOR_DEFAULT_BG; in term_reset_wincolor()
4004 &wp->w_term_wincolor.bg)) in term_update_wincolor()
4028 VTermColor *fg, *bg; in init_default_colors() local
4035 bg = &term->tl_default_color.bg; in init_default_colors()
4050 bg->red = bg->green = bg->blue = bgval; in init_default_colors()
4052 bg->type = VTERM_COLOR_RGB | VTERM_COLOR_DEFAULT_BG; in init_default_colors()
4057 if (!get_vterm_color_from_synid(id, fg, bg)) in init_default_colors()
4085 cterm_color2vterm(cterm_normal_bg_color - 1, bg); in init_default_colors()
4099 term_get_bg_color(&bg->red, &bg->green, &bg->blue); in init_default_colors()
4572 &term->tl_default_color.bg); in create_vterm()
4619 &term->tl_default_color.bg); in term_update_colors_all()
4716 cell->bg.type = VTERM_COLOR_INVALID | VTERM_COLOR_DEFAULT_BG; in clear_cell()
4870 && vterm_color_is_equal(&cell.bg, &prev_cell.bg); in f_term_dumpwrite()
4924 if (vterm_color_is_equal(&cell.bg, &prev_cell.bg)) in f_term_dumpwrite()
4929 dump_term_color(fd, &cell.bg); in f_term_dumpwrite()
4972 cell->bg.type = VTERM_COLOR_DEFAULT_BG; in clear_cellattr()
5146 cell.bg.type = type; in read_dump_file()
5147 cell.bg.red = red; in read_dump_file()
5148 cell.bg.green = green; in read_dump_file()
5149 cell.bg.blue = blue; in read_dump_file()
5150 cell.bg.index = index; in read_dump_file()
5474 else if (!vterm_color_is_equal(&(cellattr1 + col)->bg, in term_load_dump()
5475 &(cellattr2 + col)->bg)) in term_load_dump()
6101 VTermColor fg, bg; in f_term_scrape() local
6119 bg = cellattr->bg; in f_term_scrape()
6141 bg = cell.bg; in f_term_scrape()
6154 bg.red, bg.green, bg.blue); in f_term_scrape()
6158 cell2attr(term, NULL, &attrs, &fg, &bg)); in f_term_scrape()