From 7652cc58607bc03bbb57f75ad418f8ec87b11541 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Thu, 15 Jan 2015 20:20:52 +0100 Subject: Blind attempt to fix the OS/X build --- src/osx/headless.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/osx/headless.rs') diff --git a/src/osx/headless.rs b/src/osx/headless.rs index 39c8f50..ab3c341 100644 --- a/src/osx/headless.rs +++ b/src/osx/headless.rs @@ -24,8 +24,8 @@ static mut framebuffer: u32 = 0; static mut texture: u32 = 0; pub struct HeadlessContext { - width: uint, - height: uint, + width: usize, + height: usize, context: id, } @@ -34,13 +34,13 @@ impl HeadlessContext { let (width, height) = builder.dimensions; let context = unsafe { let attributes = [ - NSOpenGLPFADoubleBuffer as uint, - NSOpenGLPFAClosestPolicy as uint, - NSOpenGLPFAColorSize as uint, 24, - NSOpenGLPFAAlphaSize as uint, 8, - NSOpenGLPFADepthSize as uint, 24, - NSOpenGLPFAStencilSize as uint, 8, - NSOpenGLPFAOffScreen as uint, + NSOpenGLPFADoubleBuffer as usize, + NSOpenGLPFAClosestPolicy as usize, + NSOpenGLPFAColorSize as usize, 24, + NSOpenGLPFAAlphaSize as usize, 8, + NSOpenGLPFADepthSize as usize, 24, + NSOpenGLPFAStencilSize as usize, 8, + NSOpenGLPFAOffScreen as usize, 0 ]; -- cgit v1.2.3