diff options
author | Tuomas Siipola <siiptuo@kapsi.fi> | 2017-07-29 01:14:18 +0300 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-07-28 15:14:18 -0700 |
commit | 9b13e344f0be068982845694442489e4932ccd5d (patch) | |
tree | 098917a3f0ac3ccc515fd365d1dc4ced8222eb9c /src/renderer | |
parent | e33168eff717683fbaf01b52dbf7b4d574a52157 (diff) | |
download | alacritty-9b13e344f0be068982845694442489e4932ccd5d.tar.gz alacritty-9b13e344f0be068982845694442489e4932ccd5d.zip |
Support background and foreground color escape codes (#662)
Diffstat (limited to 'src/renderer')
-rw-r--r-- | src/renderer/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs index 7c1c011b..3cad4a01 100644 --- a/src/renderer/mod.rs +++ b/src/renderer/mod.rs @@ -684,8 +684,7 @@ impl QuadRenderer { } impl<'a> RenderApi<'a> { - pub fn clear(&self) { - let color = self.config.colors().primary.background; + pub fn clear(&self, color: Rgb) { unsafe { gl::ClearColor( (self.visual_bell_intensity + color.r as f32 / 255.0).min(1.0), |