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(
|
||||
renderer,
|
||||
extended_geo.to_logical(output_scale),
|
||||
®ion,
|
||||
region,
|
||||
output_scale,
|
||||
&mut *state.lock().unwrap(),
|
||||
&mut state.lock().unwrap(),
|
||||
uniforms,
|
||||
strength,
|
||||
)?))
|
||||
|
|
@ -502,7 +502,7 @@ fn render_blur(
|
|||
|
||||
let adjusted_tex_size = tex_size.downscale(1 << i);
|
||||
let target_tex_size = tex_size
|
||||
.downscale(1 << i + 1)
|
||||
.downscale(1 << (i + 1))
|
||||
.to_logical(1, Transform::Normal)
|
||||
.to_physical(1);
|
||||
let half_pixel = [
|
||||
|
|
|
|||
|
|
@ -623,16 +623,14 @@ pub fn render_window_to_buffer(
|
|||
1.0,
|
||||
blur_strength,
|
||||
&mut |elem| {
|
||||
elements
|
||||
.push(
|
||||
RelocateRenderElement::from_element(
|
||||
CursorRenderElement::Surface(elem),
|
||||
Point::new(0, 0),
|
||||
Relocate::Relative,
|
||||
)
|
||||
.into(),
|
||||
elements.push(
|
||||
RelocateRenderElement::from_element(
|
||||
CursorRenderElement::Surface(elem),
|
||||
Point::new(0, 0),
|
||||
Relocate::Relative,
|
||||
)
|
||||
.into()
|
||||
.into(),
|
||||
)
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue