diff options
Diffstat (limited to 'src/x11/window/mod.rs')
-rw-r--r-- | src/x11/window/mod.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/x11/window/mod.rs b/src/x11/window/mod.rs index 72c7133..7bce19f 100644 --- a/src/x11/window/mod.rs +++ b/src/x11/window/mod.rs @@ -70,7 +70,6 @@ impl Window { ffi::GLX_DEPTH_SIZE, 24, ffi::GLX_STENCIL_SIZE, 8, ffi::GLX_DOUBLEBUFFER, 1, - 0 ]; if let Some(val) = builder.multisampling { @@ -80,6 +79,8 @@ impl Window { visual_attributes.push(val as libc::c_int); } + visual_attributes.push(0); + let mut num_fb: libc::c_int = mem::uninitialized(); let fb = ffi::glx::ChooseFBConfig(display, ffi::XDefaultScreen(display), @@ -370,10 +371,10 @@ impl Window { let mut events = Vec::new(); loop { - use std::num::Bounded; + use std::num::Int; let mut xev = unsafe { mem::uninitialized() }; - let res = unsafe { ffi::XCheckMaskEvent(self.display, Bounded::max_value(), &mut xev) }; + let res = unsafe { ffi::XCheckMaskEvent(self.display, Int::max_value(), &mut xev) }; if res == 0 { let res = unsafe { ffi::XCheckTypedEvent(self.display, ffi::ClientMessage, &mut xev) }; |