diff options
author | 2022-08-15 08:10:28 -0400 | |
---|---|---|
committer | 2022-08-29 14:20:02 +0200 | |
commit | 7ec474730478749530bbac7e7c90ecc8c64f4748 (patch) | |
tree | 932ed92130461756a63e38abf0dd8513f4daf50a /glutin | |
parent | 94fc3d993e3eb5f4646b3e6559e7b25a9f227460 (diff) | |
download | iced-7ec474730478749530bbac7e7c90ecc8c64f4748.tar.gz iced-7ec474730478749530bbac7e7c90ecc8c64f4748.tar.bz2 iced-7ec474730478749530bbac7e7c90ecc8c64f4748.zip |
Update `winit` and `glutin` forks
Diffstat (limited to 'glutin')
-rw-r--r-- | glutin/Cargo.toml | 4 | ||||
-rw-r--r-- | glutin/src/application.rs | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/glutin/Cargo.toml b/glutin/Cargo.toml index 5ad038c0..d84f9d70 100644 --- a/glutin/Cargo.toml +++ b/glutin/Cargo.toml @@ -18,9 +18,9 @@ system = ["iced_winit/system"] version = "0.4" [dependencies.glutin] -version = "0.28" +version = "0.29" git = "https://github.com/iced-rs/glutin" -rev = "7a0ee02782eb2bf059095e0c953c4bb53f1eef0e" +rev = "da8d291486b4c9bec12487a46c119c4b1d386abf" [dependencies.iced_native] version = "0.5" diff --git a/glutin/src/application.rs b/glutin/src/application.rs index c6bb3e48..f474cbba 100644 --- a/glutin/src/application.rs +++ b/glutin/src/application.rs @@ -31,14 +31,14 @@ where { use futures::task; use futures::Future; - use glutin::event_loop::EventLoop; + use glutin::event_loop::EventLoopBuilder; use glutin::platform::run_return::EventLoopExtRunReturn; use glutin::ContextBuilder; let mut debug = Debug::new(); debug.startup_started(); - let mut event_loop = EventLoop::with_user_event(); + let mut event_loop = EventLoopBuilder::with_user_event().build(); let proxy = event_loop.create_proxy(); let runtime = { @@ -139,10 +139,10 @@ where let mut context = task::Context::from_waker(task::noop_waker_ref()); - event_loop.run_return(move |event, _, control_flow| { + let _ = event_loop.run_return(move |event, _, control_flow| { use glutin::event_loop::ControlFlow; - if let ControlFlow::Exit = control_flow { + if let ControlFlow::ExitWithCode(_) = control_flow { return; } |