From e942867f8ef672ee9765428df8927048d73d96c9 Mon Sep 17 00:00:00 2001 From: Wynd Date: Wed, 1 Jan 2025 19:01:41 +0200 Subject: [PATCH] Added back the screen limit size --- src/main.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index caf0ad3..d98be42 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,11 +42,11 @@ struct GameStartEvent; fn setup(mut commands: Commands, asset_server: Res) { commands.spawn(Camera2dBundle { camera: Camera { - // viewport: Some(Viewport { - // physical_position: UVec2::new(0, 0), - // physical_size: UVec2::new(480, 720), - // ..Default::default() - // }), + viewport: Some(Viewport { + physical_position: UVec2::new(0, 0), + physical_size: UVec2::new(480, 720), + ..Default::default() + }), ..Default::default() }, transform: Transform { @@ -74,7 +74,7 @@ fn main() { primary_window: Some(Window { title: "Avoid".to_string(), name: Some("avoid.app".to_string()), - // resizable: false, + resizable: false, position: WindowPosition::Centered(MonitorSelection::Current), resolution: WindowResolution::new( SCREEN_WIDTH as f32,