Only blur the cover when running in release mode
This was taking so much time omg
This commit is contained in:
parent
b9883d2ad1
commit
807289ca46
|
@ -40,9 +40,11 @@ impl Editor {
|
||||||
}).unwrap_or_else(|| Theme::default());
|
}).unwrap_or_else(|| Theme::default());
|
||||||
|
|
||||||
let cover = cover.expect("TODO");
|
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);
|
let (controls, cmd) = Controls::new(song);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue