Remove resize constraints from base game plugin

main
Elijah Voigt 2 months ago
parent 3d12aebec9
commit 77998a5197

@ -4,11 +4,6 @@ fn main() {
App::new() App::new()
.add_plugins(BaseGamePlugin { .add_plugins(BaseGamePlugin {
target_resolution: (360.0, 640.0).into(), target_resolution: (360.0, 640.0).into(),
resize_constraints: WindowResizeConstraints {
max_height: 1080.0,
min_height: 640.0,
..default()
},
..default() ..default()
}) })
.add_systems(Startup, init_window_info) .add_systems(Startup, init_window_info)

@ -6,7 +6,6 @@ pub struct BaseGamePlugin {
pub name: String, pub name: String,
pub game_type: GameType, pub game_type: GameType,
pub target_resolution: WindowResolution, pub target_resolution: WindowResolution,
pub resize_constraints: WindowResizeConstraints,
} }
pub enum GameType { pub enum GameType {
@ -21,7 +20,6 @@ impl Default for BaseGamePlugin {
name: "mygame".into(), name: "mygame".into(),
game_type: GameType::Three, game_type: GameType::Three,
target_resolution: WindowResolution::default(), target_resolution: WindowResolution::default(),
resize_constraints: WindowResizeConstraints::default(),
} }
} }
} }
@ -34,7 +32,6 @@ impl Plugin for BaseGamePlugin {
primary_window: Some(Window { primary_window: Some(Window {
fit_canvas_to_parent: true, fit_canvas_to_parent: true,
resolution: self.target_resolution.clone(), resolution: self.target_resolution.clone(),
resize_constraints: self.resize_constraints.clone(),
..default() ..default()
}), }),
..default() ..default()

Loading…
Cancel
Save