diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-01-13 20:59:48 +0100 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-01-13 20:59:48 +0100 |
commit | e3943945c75465fa813ea8eb75d56cf55b2c092e (patch) | |
tree | 81526203a89160898dc8ee55472628012f2708b0 /examples | |
parent | 2d4f1c72fbd3c53f7ec9049076f435c95666293e (diff) | |
parent | 5a4fee967a9f2d7d64edad09bf1f19a5c560032e (diff) | |
download | glutin-e3943945c75465fa813ea8eb75d56cf55b2c092e.tar.gz glutin-e3943945c75465fa813ea8eb75d56cf55b2c092e.zip |
Merge pull request #197 from ozkriff/master
x11, android, win: [ui]size -> [ui]32
Diffstat (limited to 'examples')
-rw-r--r-- | examples/window.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/window.rs b/examples/window.rs index 11ab737..37966c4 100644 --- a/examples/window.rs +++ b/examples/window.rs @@ -13,7 +13,7 @@ android_start!(main); fn main() { println!("This example requires glutin to be compiled with the `window` feature"); } #[cfg(feature = "window")] -fn resize_callback(width: uint, height: uint) { +fn resize_callback(width: u32, height: u32) { println!("Window resized to {}x{}", width, height); } @@ -21,7 +21,7 @@ fn resize_callback(width: uint, height: uint) { fn main() { let mut window = glutin::Window::new().unwrap(); window.set_title("A fantastic window!"); - window.set_window_resize_callback(Some(resize_callback as fn(uint, uint))); + window.set_window_resize_callback(Some(resize_callback as fn(u32, u32))); unsafe { window.make_current() }; let context = support::load(&window); |