breaking: Use raw-window-handle version 0.6
Signed-off-by: John Nunley <dev@notgull.net> Co-Authored-By: dAxpeDDa <daxpedda@gmail.com>
This commit is contained in:
parent
18c944736e
commit
0bcd2e22a2
22 changed files with 830 additions and 628 deletions
|
|
@ -1,3 +1,5 @@
|
|||
// TODO: Once winit is updated again, restore this test.
|
||||
/*
|
||||
use softbuffer::{Context, Surface};
|
||||
use std::num::NonZeroU32;
|
||||
use winit::event_loop::EventLoopWindowTarget;
|
||||
|
|
@ -26,8 +28,8 @@ fn all_red(elwt: &EventLoopWindowTarget<()>) {
|
|||
#[cfg(not(target_arch = "wasm32"))]
|
||||
std::thread::sleep(std::time::Duration::from_millis(1));
|
||||
|
||||
let context = unsafe { Context::new(elwt) }.unwrap();
|
||||
let mut surface = unsafe { Surface::new(&context, &window) }.unwrap();
|
||||
let context = Context::new(elwt).unwrap();
|
||||
let mut surface = Surface::new(&context, &window).unwrap();
|
||||
let size = window.inner_size();
|
||||
|
||||
// Set the size of the surface to the size of the window.
|
||||
|
|
@ -54,3 +56,6 @@ fn all_red(elwt: &EventLoopWindowTarget<()>) {
|
|||
}
|
||||
|
||||
winit_test::main!(all_red);
|
||||
*/
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue