aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11
diff options
context:
space:
mode:
authorTomaka17 <pierre.krieger1708@gmail.com>2014-10-22 08:04:13 +0200
committerTomaka17 <pierre.krieger1708@gmail.com>2014-10-22 11:23:21 +0200
commit2ff393fe623d10f2ea89262013ba66e228cc0c94 (patch)
tree0c44986d2c2db6a27dee94a3a9c9d6a8385ec9c6 /src/x11
parent0d0c14e6ecc3137fd1d12c389e03e6f312f1f207 (diff)
downloadglutin-2ff393fe623d10f2ea89262013ba66e228cc0c94.tar.gz
glutin-2ff393fe623d10f2ea89262013ba66e228cc0c94.zip
Update for rustc and gl-rs
Diffstat (limited to 'src/x11')
-rw-r--r--src/x11/ffi.rs18
-rw-r--r--src/x11/window/mod.rs6
2 files changed, 12 insertions, 12 deletions
diff --git a/src/x11/ffi.rs b/src/x11/ffi.rs
index f6a0a3b..822f755 100644
--- a/src/x11/ffi.rs
+++ b/src/x11/ffi.rs
@@ -9,22 +9,22 @@ use libc;
/// GLX bindings
pub mod glx {
generate_gl_bindings! {
- api: glx,
- profile: core,
- version: 1.4,
- generator: static
+ api: "glx",
+ profile: "core",
+ version: "1.4",
+ generator: "static"
}
}
/// Functions that are not necessarly always available
pub mod glx_extra {
generate_gl_bindings! {
- api: glx,
- profile: core,
- version: 1.4,
- generator: struct,
+ api: "glx",
+ profile: "core",
+ version: "1.4",
+ generator: "struct",
extensions: [
- GLX_ARB_create_context
+ "GLX_ARB_create_context"
]
}
}
diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs
index ad10e16..cb73958 100644
--- a/src/x11/window/mod.rs
+++ b/src/x11/window/mod.rs
@@ -1,7 +1,7 @@
use {Event, WindowBuilder};
use libc;
use std::{mem, ptr};
-use std::sync::atomics::AtomicBool;
+use std::sync::atomic::AtomicBool;
use super::ffi;
pub use self::monitor::{MonitorID, get_available_monitors, get_primary_monitor};
@@ -260,7 +260,7 @@ impl Window {
}
pub fn is_closed(&self) -> bool {
- use std::sync::atomics::Relaxed;
+ use std::sync::atomic::Relaxed;
self.is_closed.load(Relaxed)
}
@@ -340,7 +340,7 @@ impl Window {
ffi::ClientMessage => {
use Closed;
- use std::sync::atomics::Relaxed;
+ use std::sync::atomic::Relaxed;
let client_msg: &ffi::XClientMessageEvent = unsafe { mem::transmute(&xev) };