Skip to content

Commit b0a677c

Browse files
committed
Fix html example
1 parent 57dca1a commit b0a677c

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

examples/wgpu_texture/src/html.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use anyrender_vello::{VelloRendererOptions, VelloWindowRenderer};
22
use blitz_dom::{qual_name, DocumentConfig};
33
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};
55

66
use crate::{limits, DemoPaintSource, FEATURES, STYLES};
77

@@ -30,13 +30,14 @@ pub fn launch_html() {
3030
.set_attribute(canvas_node_id, src_attr, &src_str);
3131

3232
// 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);
3536
let window = WindowConfig::new(Box::new(doc), renderer);
3637
application.add_window(window);
3738

3839
// Run event loop
39-
event_loop.run_app(&mut application).unwrap()
40+
event_loop.run_app(application).unwrap()
4041
}
4142

4243
static HTML: &str = r#"

0 commit comments

Comments
 (0)