|
1 | 1 | use anyrender_vello::{VelloRendererOptions, VelloWindowRenderer}; |
2 | 2 | use blitz_dom::{qual_name, DocumentConfig}; |
3 | 3 | use blitz_html::HtmlDocument; |
4 | | -use blitz_shell::{create_default_event_loop, BlitzApplication, BlitzShellEvent, WindowConfig}; |
| 4 | +use blitz_shell::{create_default_event_loop, BlitzApplication, BlitzShellEvent, BlitzShellProxy, WindowConfig}; |
5 | 5 |
|
6 | 6 | use crate::{limits, DemoPaintSource, FEATURES, STYLES}; |
7 | 7 |
|
@@ -30,13 +30,14 @@ pub fn launch_html() { |
30 | 30 | .set_attribute(canvas_node_id, src_attr, &src_str); |
31 | 31 |
|
32 | 32 | // Create the Winit application and window |
33 | | - let event_loop = create_default_event_loop::<BlitzShellEvent>(); |
34 | | - let mut application = BlitzApplication::new(event_loop.create_proxy()); |
| 33 | + let event_loop = create_default_event_loop(); |
| 34 | + let (proxy, reciever) = BlitzShellProxy::new(event_loop.create_proxy()); |
| 35 | + let mut application = BlitzApplication::new(proxy, reciever); |
35 | 36 | let window = WindowConfig::new(Box::new(doc), renderer); |
36 | 37 | application.add_window(window); |
37 | 38 |
|
38 | 39 | // Run event loop |
39 | | - event_loop.run_app(&mut application).unwrap() |
| 40 | + event_loop.run_app(application).unwrap() |
40 | 41 | } |
41 | 42 |
|
42 | 43 | static HTML: &str = r#" |
|
0 commit comments