mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 05:10:03 -04:00
Update for rustc
This commit is contained in:
@@ -23,7 +23,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));
|
||||
window.set_window_resize_callback(Some(resize_callback as fn(uint, uint)));
|
||||
unsafe { window.make_current() };
|
||||
|
||||
let context = support::load(&window);
|
||||
|
||||
Reference in New Issue
Block a user