mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
Update for Rustc for win32
This commit is contained in:
parent
65dfd5d7ce
commit
19d120b8b1
|
@ -20,15 +20,15 @@ fn main() {
|
|||
let window2 = glutin::Window::new().unwrap();
|
||||
let window3 = glutin::Window::new().unwrap();
|
||||
|
||||
spawn(proc() {
|
||||
spawn(move || {
|
||||
run(window1, (0.0, 1.0, 0.0, 1.0));
|
||||
});
|
||||
|
||||
spawn(proc() {
|
||||
spawn(move || {
|
||||
run(window2, (0.0, 0.0, 1.0, 1.0));
|
||||
});
|
||||
|
||||
spawn(proc() {
|
||||
spawn(move || {
|
||||
run(window3, (1.0, 0.0, 0.0, 1.0));
|
||||
});
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ pub fn new_window(builder_dimensions: Option<(uint, uint)>, builder_title: Strin
|
|||
// GetMessage must be called in the same thread as CreateWindow,
|
||||
// so we create a new thread dedicated to this window.
|
||||
// This is the only safe method. Using `nosend` wouldn't work for non-native runtime.
|
||||
spawn(proc() {
|
||||
spawn(move || {
|
||||
// registering the window class
|
||||
let class_name = {
|
||||
let class_name: Vec<u16> = "Window Class".utf16_units().chain(Some(0).into_iter())
|
||||
|
|
Loading…
Reference in a new issue