non-resizeable window

This commit is contained in:
Max Bradbury 2021-11-14 17:49:52 +00:00
parent 68f5306283
commit a5e5939fd5
1 changed files with 2 additions and 0 deletions

View File

@ -236,6 +236,7 @@ fn main() -> Result<(), Error> {
fn window_builder(title: &str, event_loop: &EventLoop<()>) -> winit::window::Window { fn window_builder(title: &str, event_loop: &EventLoop<()>) -> winit::window::Window {
winit::window::WindowBuilder::new() winit::window::WindowBuilder::new()
.with_visible(false) .with_visible(false)
.with_resizable(false)
.with_title(title).build(&event_loop).unwrap() .with_title(title).build(&event_loop).unwrap()
} }
@ -246,6 +247,7 @@ fn window_builder(title: &str, event_loop: &EventLoop<()>) -> winit::window::Win
winit::window::WindowBuilder::new() winit::window::WindowBuilder::new()
.with_drag_and_drop(false) .with_drag_and_drop(false)
.with_visible(false) .with_visible(false)
.with_resizable(false)
.with_title(title).build(&event_loop).unwrap() .with_title(title).build(&event_loop).unwrap()
} }