aboutsummaryrefslogtreecommitdiffstats
path: root/examples/transparent.rs
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-10-04 18:39:17 +0200
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-10-04 18:39:17 +0200
commit2b35a6c9d1a1e2f748b887947b16ce67d05207c2 (patch)
treef83aef04f7fbd1585ed0a29070f0fcc3dc0d65f4 /examples/transparent.rs
parentdf10bbd1632cfd29429270734da485d295e6b888 (diff)
downloadglutin-2b35a6c9d1a1e2f748b887947b16ce67d05207c2.tar.gz
glutin-2b35a6c9d1a1e2f748b887947b16ce67d05207c2.zip
Fix the examples
Diffstat (limited to 'examples/transparent.rs')
-rw-r--r--examples/transparent.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/examples/transparent.rs b/examples/transparent.rs
index 9392d38..84795d5 100644
--- a/examples/transparent.rs
+++ b/examples/transparent.rs
@@ -9,15 +9,10 @@ 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 resize_callback(width: u32, height: u32) {
println!("Window resized to {}x{}", width, height);
}
-#[cfg(feature = "window")]
fn main() {
let mut window = glutin::WindowBuilder::new().with_decorations(false)
.with_transparency(true)