diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-01-15 21:01:21 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-01-15 21:01:21 +0100 |
commit | 2cabfdd37373175d0f0a2a6e236f4a88f32b619d (patch) | |
tree | 6a35c0d2d6b521ac8d7eccfae3a5f60fa23611cf /src | |
parent | afba03bf2acac45c5fae0738f346785df932d3ba (diff) | |
parent | 3ce5fd08a848168294e4dcae21060f968a7178c4 (diff) | |
download | glutin-2cabfdd37373175d0f0a2a6e236f4a88f32b619d.tar.gz glutin-2cabfdd37373175d0f0a2a6e236f4a88f32b619d.zip |
Merge pull request #204 from tomaka/fix-osx-attempt
More OS/X fixes
Diffstat (limited to 'src')
-rw-r--r-- | src/osx/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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<fn(usize, usize)>, + handler: Option<fn(u32, u32)>, } pub struct Window { @@ -59,7 +59,7 @@ pub struct Window { window: id, context: id, delegate: id, - resize: Option<fn(usize, usize)>, + resize: Option<fn(u32, u32)>, is_closed: Cell<bool>, } @@ -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<fn(usize, usize)>) { + pub fn set_window_resize_callback(&mut self, callback: Option<fn(u32, u32)>) { self.resize = callback; } |