Remove background from Settings

This commit is contained in:
Héctor Ramón Jiménez 2020-01-05 18:11:54 +01:00
parent 5af4159848
commit 8d6f86b317
5 changed files with 9 additions and 34 deletions

View file

@ -80,7 +80,6 @@ impl Renderer {
fn draw<T: AsRef<str>>(
&mut self,
clear_color: Color,
(primitive, mouse_cursor): &(Primitive, MouseCursor),
overlay: &[T],
target: &mut Target,
@ -102,15 +101,11 @@ impl Renderer {
resolve_target: None,
load_op: wgpu::LoadOp::Clear,
store_op: wgpu::StoreOp::Store,
clear_color: {
let [r, g, b, a] = clear_color.into_linear();
wgpu::Color {
r: f64::from(r),
g: f64::from(g),
b: f64::from(b),
a: f64::from(a),
}
clear_color: wgpu::Color {
r: 1.0,
g: 1.0,
b: 1.0,
a: 1.0,
},
}],
depth_stencil_attachment: None,
@ -443,12 +438,11 @@ impl Windowed for Renderer {
fn draw<T: AsRef<str>>(
&mut self,
clear_color: Color,
output: &Self::Output,
overlay: &[T],
target: &mut Target,
) -> MouseCursor {
self.draw(clear_color, output, overlay, target)
self.draw(output, overlay, target)
}
}