1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 15:04:36 +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, cursor_border_color: Color,
foreground: Color, foreground: Color,
background: Color,
} }
#[derive(Debug, Clone, Copy)] #[derive(Debug, Clone, Copy)]
@ -2647,7 +2646,6 @@ impl TermWindow {
config: &config, config: &config,
cursor_border_color, cursor_border_color,
foreground, foreground,
background,
pos, pos,
}, },
&mut quads, &mut quads,
@ -2739,7 +2737,6 @@ impl TermWindow {
config: &config, config: &config,
cursor_border_color, cursor_border_color,
foreground, foreground,
background,
pos, pos,
}, },
&mut quads, &mut quads,
@ -3131,11 +3128,10 @@ impl TermWindow {
params.cursor, params.cursor,
&params.selection, &params.selection,
params.foreground, params.foreground,
if self.window_background.is_some() { rgbcolor_alpha_to_window_color(
Color::rgba(0, 0, 0, 0) params.palette.resolve_bg(ColorAttribute::Default),
} else { (params.config.window_background_tint * 255.0) as u8,
params.background ),
},
params.palette, params.palette,
params.pos.is_active, params.pos.is_active,
); );