internal cleanup: Remove the use of ComponentWindow in the interpreter

This commit is contained in:
Simon Hausmann 2021-07-21 16:39:25 +02:00 committed by Simon Hausmann
parent ef184f7f1a
commit 1c285694d7
11 changed files with 45 additions and 50 deletions

View file

@ -29,7 +29,7 @@ pub unsafe extern "C" fn sixtyfps_component_window_init(out: *mut ComponentWindo
core::mem::size_of::<ComponentWindow>(),
core::mem::size_of::<ComponentWindowOpaque>()
);
core::ptr::write(out as *mut ComponentWindow, crate::backend().create_window());
core::ptr::write(out as *mut ComponentWindow, crate::backend().create_window().into());
}
#[no_mangle]