Skip to content

Commit

Permalink
Merge pull request #86 from gabm/fix-blur
Browse files Browse the repository at this point in the history
Fix blur and resizing
  • Loading branch information
gabm authored May 14, 2024
2 parents 0380308 + 9abe971 commit 09ac0a9
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 09ac0a9

Please sign in to comment.