From 3ce5fd08a848168294e4dcae21060f968a7178c4 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Thu, 15 Jan 2015 20:59:54 +0100 Subject: More OS/X fixes --- src/osx/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/osx/mod.rs b/src/osx/mod.rs index 001deff..59d979a 100644 --- a/src/osx/mod.rs +++ b/src/osx/mod.rs @@ -51,7 +51,7 @@ struct DelegateState<'a> { is_closed: bool, context: id, view: id, - handler: Option, + handler: Option, } pub struct Window { @@ -59,7 +59,7 @@ pub struct Window { window: id, context: id, delegate: id, - resize: Option, + resize: Option, is_closed: Cell, } @@ -128,7 +128,7 @@ extern fn window_did_resize(this: id, _: id) -> id { match state.handler { Some(handler) => { let rect = NSView::frame(state.view); - (handler)(rect.size.width as usize, rect.size.height as usize); + (handler)(rect.size.width as u32, rect.size.height as u32); } None => {} } @@ -488,7 +488,7 @@ impl Window { ::Api::OpenGl } - pub fn set_window_resize_callback(&mut self, callback: Option) { + pub fn set_window_resize_callback(&mut self, callback: Option) { self.resize = callback; } -- cgit v1.2.3