From a5e5939fd5f4fc778f5601365d642d87fdb080f3 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Sun, 14 Nov 2021 17:49:52 +0000 Subject: [PATCH] non-resizeable window --- src/bin/player.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/player.rs b/src/bin/player.rs index 6571ced..b4576ef 100644 --- a/src/bin/player.rs +++ b/src/bin/player.rs @@ -236,6 +236,7 @@ fn main() -> Result<(), Error> { fn window_builder(title: &str, event_loop: &EventLoop<()>) -> winit::window::Window { winit::window::WindowBuilder::new() .with_visible(false) + .with_resizable(false) .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() .with_drag_and_drop(false) .with_visible(false) + .with_resizable(false) .with_title(title).build(&event_loop).unwrap() }