From 77998a519707dac49a7563619f45f33251cf9d30 Mon Sep 17 00:00:00 2001 From: Elijah Voigt Date: Mon, 25 Aug 2025 22:58:08 -0700 Subject: [PATCH] Remove resize constraints from base game plugin --- examples/window.rs | 5 ----- src/base_game.rs | 3 --- 2 files changed, 8 deletions(-) diff --git a/examples/window.rs b/examples/window.rs index bb22f95..64a1140 100644 --- a/examples/window.rs +++ b/examples/window.rs @@ -4,11 +4,6 @@ fn main() { App::new() .add_plugins(BaseGamePlugin { target_resolution: (360.0, 640.0).into(), - resize_constraints: WindowResizeConstraints { - max_height: 1080.0, - min_height: 640.0, - ..default() - }, ..default() }) .add_systems(Startup, init_window_info) diff --git a/src/base_game.rs b/src/base_game.rs index 201b32b..05f493e 100644 --- a/src/base_game.rs +++ b/src/base_game.rs @@ -6,7 +6,6 @@ pub struct BaseGamePlugin { pub name: String, pub game_type: GameType, pub target_resolution: WindowResolution, - pub resize_constraints: WindowResizeConstraints, } pub enum GameType { @@ -21,7 +20,6 @@ impl Default for BaseGamePlugin { name: "mygame".into(), game_type: GameType::Three, target_resolution: WindowResolution::default(), - resize_constraints: WindowResizeConstraints::default(), } } } @@ -34,7 +32,6 @@ impl Plugin for BaseGamePlugin { primary_window: Some(Window { fit_canvas_to_parent: true, resolution: self.target_resolution.clone(), - resize_constraints: self.resize_constraints.clone(), ..default() }), ..default()