aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2014-11-23 12:05:31 +0100
committertomaka <pierre.krieger1708@gmail.com>2014-11-23 12:05:31 +0100
commit27621429608f6173954348c7e4d259ade169cc07 (patch)
treed73b4dfdd7cb2e5dfbb0d81f249b77bd3b728c68 /src/win32
parent7b95b2906ea626cf59388367f1e821ef353cbb88 (diff)
parent77df8e52bc358f7d953eebad33e61b9512ec6407 (diff)
downloadglutin-27621429608f6173954348c7e4d259ade169cc07.tar.gz
glutin-27621429608f6173954348c7e4d259ade169cc07.zip
Merge pull request #131 from tomaka/update
Update for rustc
Diffstat (limited to 'src/win32')
-rw-r--r--src/win32/init.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/win32/init.rs b/src/win32/init.rs
index f8a7227..1f5be09 100644
--- a/src/win32/init.rs
+++ b/src/win32/init.rs
@@ -1,6 +1,3 @@
-extern crate native;
-
-use self::native::NativeTaskBuilder;
use std::task::TaskBuilder;
use std::sync::atomic::AtomicBool;
use std::ptr;
@@ -32,7 +29,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.
- TaskBuilder::new().native().spawn(proc() {
+ spawn(proc() {
// registering the window class
let class_name = {
let class_name: Vec<u16> = "Window Class".utf16_units().chain(Some(0).into_iter())