Update winit to 0.30
This commit is contained in:
parent
db07b9ba9e
commit
2645524f88
12 changed files with 901 additions and 643 deletions
|
|
@ -212,26 +212,11 @@ where
|
|||
..crate::graphics::Settings::default()
|
||||
};
|
||||
|
||||
let run = crate::shell::application::run::<
|
||||
Ok(crate::shell::application::run::<
|
||||
Instance<Self>,
|
||||
Self::Executor,
|
||||
<Self::Renderer as compositor::Default>::Compositor,
|
||||
>(settings.into(), renderer_settings);
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
{
|
||||
use crate::futures::FutureExt;
|
||||
use iced_futures::backend::wasm::wasm_bindgen::Executor;
|
||||
|
||||
Executor::new()
|
||||
.expect("Create Wasm executor")
|
||||
.spawn(run.map(|_| ()));
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
Ok(crate::futures::executor::block_on(run)?)
|
||||
>(settings.into(), renderer_settings)?)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue