mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 05:21:31 +11:00
Fix WindowBuilder function names that missed first pass (#910)
This commit is contained in:
parent
f256ff7d58
commit
2b89ddec15
|
@ -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!");
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue