Update for Rustc
This commit is contained in:
parent
bfd21793a8
commit
885d5e9c38
4 changed files with 8 additions and 8 deletions
|
|
@ -19,7 +19,7 @@ impl HeadlessContext {
|
|||
Ok(HeadlessContext {
|
||||
width: dimensions.0,
|
||||
height: dimensions.1,
|
||||
buffer: Vec::from_elem(dimensions.0 * dimensions.1, unsafe { mem::uninitialized() }),
|
||||
buffer: ::std::iter::repeat(unsafe { mem::uninitialized() }).take(dimensions.0 * dimensions.1).collect(),
|
||||
context: unsafe {
|
||||
let ctxt = ffi::OSMesaCreateContext(0x1908, ptr::null());
|
||||
if ctxt.is_null() {
|
||||
|
|
|
|||
|
|
@ -351,7 +351,7 @@ impl Window {
|
|||
}
|
||||
|
||||
pub fn is_closed(&self) -> bool {
|
||||
use std::sync::atomic::Relaxed;
|
||||
use std::sync::atomic::Ordering::Relaxed;
|
||||
self.is_closed.load(Relaxed)
|
||||
}
|
||||
|
||||
|
|
@ -453,7 +453,7 @@ impl Window {
|
|||
|
||||
ffi::ClientMessage => {
|
||||
use events::Event::{Closed, Awakened};
|
||||
use std::sync::atomic::Relaxed;
|
||||
use std::sync::atomic::Ordering::Relaxed;
|
||||
|
||||
let client_msg: &ffi::XClientMessageEvent = unsafe { mem::transmute(&xev) };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue