From 2b89ddec15c897a3982527df6c6c88815c210909 Mon Sep 17 00:00:00 2001 From: Osspial Date: Wed, 12 Jun 2019 13:34:09 -0400 Subject: [PATCH] Fix WindowBuilder function names that missed first pass (#910) --- examples/transparent.rs | 2 +- src/window.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/transparent.rs b/examples/transparent.rs index 4da6f9f2..eea39889 100644 --- a/examples/transparent.rs +++ b/examples/transparent.rs @@ -7,7 +7,7 @@ fn main() { let event_loop = EventLoop::new(); let window = WindowBuilder::new().with_decorations(false) - .with_transparency(true) + .with_transparent(true) .build(&event_loop).unwrap(); window.set_title("A fantastic window!"); diff --git a/src/window.rs b/src/window.rs index e855ca1a..c65d6e88 100644 --- a/src/window.rs +++ b/src/window.rs @@ -234,14 +234,14 @@ impl WindowBuilder { /// Sets whether the window will be initially hidden or visible. #[inline] - pub fn with_visibility(mut self, visible: bool) -> WindowBuilder { + pub fn with_visible(mut self, visible: bool) -> WindowBuilder { self.window.visible = visible; self } /// Sets whether the background of the window should be transparent. #[inline] - pub fn with_transparency(mut self, transparent: bool) -> WindowBuilder { + pub fn with_transparent(mut self, transparent: bool) -> WindowBuilder { self.window.transparent = transparent; self }