1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-27 12:23:46 +03:00

wezterm: fix an issue with opacity when making the window wider

The inferred background color for the cells in this case didn't
account for the tint.

refs: #141
This commit is contained in:
Wez Furlong 2020-10-18 16:24:48 -07:00
parent 21eab3430b
commit c47b86b78a

View File

@ -78,7 +78,6 @@ struct RenderScreenLineOpenGLParams<'a> {
cursor_border_color: Color,
foreground: Color,
background: Color,
}
#[derive(Debug, Clone, Copy)]
@ -2647,7 +2646,6 @@ impl TermWindow {
config: &config,
cursor_border_color,
foreground,
background,
pos,
},
&mut quads,
@ -2739,7 +2737,6 @@ impl TermWindow {
config: &config,
cursor_border_color,
foreground,
background,
pos,
},
&mut quads,
@ -3131,11 +3128,10 @@ impl TermWindow {
params.cursor,
&params.selection,
params.foreground,
if self.window_background.is_some() {
Color::rgba(0, 0, 0, 0)
} else {
params.background
},
rgbcolor_alpha_to_window_color(
params.palette.resolve_bg(ColorAttribute::Default),
(params.config.window_background_tint * 255.0) as u8,
),
params.palette,
params.pos.is_active,
);