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

gui: speculative fix for #2068

refs: https://github.com/wez/wezterm/issues/2068
This commit is contained in:
Wez Furlong 2022-06-02 21:06:19 -07:00
parent ff32ae804e
commit f60e39b4c3

View File

@ -97,8 +97,10 @@ impl<'a> Quad<'a> {
for v in self.vert.iter_mut() {
v.fg_color = color.tuple();
}
self.set_alt_color_and_mix_value(color, 0.);
}
/// Must be called after set_fg_color
pub fn set_alt_color_and_mix_value(&mut self, color: LinearRgba, mix_value: f32) {
for v in self.vert.iter_mut() {
v.alt_color = color.tuple();