1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-29 16:42:13 +03:00

factor out color conversion to match software renderer

This commit is contained in:
Wez Furlong 2019-10-29 08:00:26 -07:00
parent 7ecee7a5d6
commit d0f2204bdd

View File

@ -816,8 +816,8 @@ impl TermWindow {
(fg, bg)
};
let glyph_color = fg_color;
let bg_color = bg_color;
let glyph_color = rgbcolor_to_window_color(fg_color);
let bg_color = rgbcolor_to_window_color(bg_color);
// Shape the printable text from this cluster
let glyph_info = {
@ -867,8 +867,8 @@ impl TermWindow {
cell_idx,
cursor,
&selection,
rgbcolor_to_window_color(glyph_color),
rgbcolor_to_window_color(bg_color),
glyph_color,
bg_color,
palette,
);