chore: Fix clippy lints
This commit is contained in:
parent
de8b47839c
commit
cfed174e9b
2 changed files with 10 additions and 12 deletions
|
|
@ -226,9 +226,9 @@ impl BlurElement {
|
||||||
Ok(Some(Self::from_state(
|
Ok(Some(Self::from_state(
|
||||||
renderer,
|
renderer,
|
||||||
extended_geo.to_logical(output_scale),
|
extended_geo.to_logical(output_scale),
|
||||||
®ion,
|
region,
|
||||||
output_scale,
|
output_scale,
|
||||||
&mut *state.lock().unwrap(),
|
&mut state.lock().unwrap(),
|
||||||
uniforms,
|
uniforms,
|
||||||
strength,
|
strength,
|
||||||
)?))
|
)?))
|
||||||
|
|
@ -502,7 +502,7 @@ fn render_blur(
|
||||||
|
|
||||||
let adjusted_tex_size = tex_size.downscale(1 << i);
|
let adjusted_tex_size = tex_size.downscale(1 << i);
|
||||||
let target_tex_size = tex_size
|
let target_tex_size = tex_size
|
||||||
.downscale(1 << i + 1)
|
.downscale(1 << (i + 1))
|
||||||
.to_logical(1, Transform::Normal)
|
.to_logical(1, Transform::Normal)
|
||||||
.to_physical(1);
|
.to_physical(1);
|
||||||
let half_pixel = [
|
let half_pixel = [
|
||||||
|
|
|
||||||
|
|
@ -623,16 +623,14 @@ pub fn render_window_to_buffer(
|
||||||
1.0,
|
1.0,
|
||||||
blur_strength,
|
blur_strength,
|
||||||
&mut |elem| {
|
&mut |elem| {
|
||||||
elements
|
elements.push(
|
||||||
.push(
|
RelocateRenderElement::from_element(
|
||||||
RelocateRenderElement::from_element(
|
CursorRenderElement::Surface(elem),
|
||||||
CursorRenderElement::Surface(elem),
|
Point::new(0, 0),
|
||||||
Point::new(0, 0),
|
Relocate::Relative,
|
||||||
Relocate::Relative,
|
|
||||||
)
|
|
||||||
.into(),
|
|
||||||
)
|
)
|
||||||
.into()
|
.into(),
|
||||||
|
)
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue