diff options
Diffstat (limited to 'examples/cursor.rs')
-rw-r--r-- | examples/cursor.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/cursor.rs b/examples/cursor.rs index b0ec16a..cbe6978 100644 --- a/examples/cursor.rs +++ b/examples/cursor.rs @@ -11,12 +11,7 @@ mod support; #[cfg(target_os = "android")] android_start!(main); -#[cfg(not(feature = "window"))] -fn main() { println!("This example requires glutin to be compiled with the `window` feature"); } - -#[cfg(feature = "window")] -fn main() { - +fn main() { let window = glutin::WindowBuilder::new().build().unwrap(); window.set_title("A fantastic window!"); unsafe { window.make_current() }; |