Only blur the cover when running in release mode

This was taking so much time omg
This commit is contained in:
Emi Simpson 2022-01-07 17:31:02 -05:00
parent b9883d2ad1
commit 807289ca46
Signed by: Emi
GPG Key ID: A12F2C2FFDC3D847
1 changed files with 5 additions and 3 deletions

View File

@ -40,9 +40,11 @@ impl Editor {
}).unwrap_or_else(|| Theme::default());
let cover = cover.expect("TODO");
let bg_img = DynamicImage::ImageBgra8(
cover.blur((cover.width() / 50) as f32).into_bgra8()
);
#[cfg(not(debug_assertions))]
let cover = cover.blur((cover.width() / 50) as f32);
let bg_img = DynamicImage::ImageBgra8(cover.into_bgra8());
let (controls, cmd) = Controls::new(song);