aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/renderer/rects.rs
diff options
context:
space:
mode:
authorKirill Chibisov <wchibisovkirill@gmail.com>2019-10-26 22:45:47 +0300
committerChristian Duerr <contact@christianduerr.com>2019-10-26 21:45:47 +0200
commit9ff2838844df45b6a1f20621ced870e9e1855ec8 (patch)
tree67bae587a48bf2aa7cfa5c733acf1ff901793301 /alacritty_terminal/src/renderer/rects.rs
parent77127fbb41748eae264b1a7578a3bd7d0f94d5c5 (diff)
downloadr-alacritty-9ff2838844df45b6a1f20621ced870e9e1855ec8.tar.gz
r-alacritty-9ff2838844df45b6a1f20621ced870e9e1855ec8.tar.bz2
r-alacritty-9ff2838844df45b6a1f20621ced870e9e1855ec8.zip
Fix visual bell rendering mode
Fixes #2911.
Diffstat (limited to 'alacritty_terminal/src/renderer/rects.rs')
-rw-r--r--alacritty_terminal/src/renderer/rects.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/alacritty_terminal/src/renderer/rects.rs b/alacritty_terminal/src/renderer/rects.rs
index dd72f673..c105c2e7 100644
--- a/alacritty_terminal/src/renderer/rects.rs
+++ b/alacritty_terminal/src/renderer/rects.rs
@@ -27,11 +27,12 @@ pub struct RenderRect {
pub width: f32,
pub height: f32,
pub color: Rgb,
+ pub alpha: f32,
}
impl RenderRect {
- pub fn new(x: f32, y: f32, width: f32, height: f32, color: Rgb) -> Self {
- RenderRect { x, y, width, height, color }
+ pub fn new(x: f32, y: f32, width: f32, height: f32, color: Rgb, alpha: f32) -> Self {
+ RenderRect { x, y, width, height, color, alpha }
}
}
@@ -65,7 +66,7 @@ impl RenderLine {
y = max_y;
}
- RenderRect::new(start_x + size.padding_x, y + size.padding_y, width, height, self.color)
+ RenderRect::new(start_x + size.padding_x, y + size.padding_y, width, height, self.color, 1.)
}
}