diff options
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), |