From 19d120b8b19d85e9cea5c3e8851b8809d072b8bd Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Mon, 15 Dec 2014 14:06:32 +0100 Subject: Update for Rustc for win32 --- examples/multiwindow.rs | 6 +++--- src/win32/init.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/multiwindow.rs b/examples/multiwindow.rs index d3961b3..62af7d5 100644 --- a/examples/multiwindow.rs +++ b/examples/multiwindow.rs @@ -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)); }); } diff --git a/src/win32/init.rs b/src/win32/init.rs index f3e669c..f10eb7c 100644 --- a/src/win32/init.rs +++ b/src/win32/init.rs @@ -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 = "Window Class".utf16_units().chain(Some(0).into_iter()) -- cgit v1.2.3