Skip to content

Commit

Permalink
fix strange blur
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Gabriel committed May 14, 2024
1 parent 0380308 commit 9abe971
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tools/blur.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl Blur {
sub.width(),
sub.height(),
femtovg::PixelFormat::Rgba8,
ImageFlags::GENERATE_MIPMAPS,
ImageFlags::empty(),
)?;

canvas.filter_image(
Expand Down Expand Up @@ -99,6 +99,7 @@ impl Drawable for Blur {

let mut path = Path::new();
path.rect(pos.x, pos.y, size.x, size.y);

canvas.fill_path(
&path,
&Paint::image(
Expand Down

0 comments on commit 9abe971

Please sign in to comment.