From 924df55e180ee416f4440692304a0834e523364b Mon Sep 17 00:00:00 2001 From: Joshua Coles Date: Thu, 2 Mar 2023 18:07:03 +0000 Subject: [PATCH] Fix window size --- src/ui.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/ui.rs b/src/ui.rs index 928a8de..4017cb3 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -7,7 +7,15 @@ struct Position2D(i32, i32); fn main() -> Result<(), Box> { App::new() - .add_plugins(DefaultPlugins) + .add_plugins(DefaultPlugins.set(WindowPlugin { + window: WindowDescriptor { + title: "DLA Static 2D Render".to_string(), + width: 800., + height: 800., + ..default() + }, + ..default() + })) .add_startup_system(setup_ui) .add_startup_system(read_csv) .run(); @@ -47,7 +55,7 @@ fn read_csv( for Position2D(x, y) in positions { // Rectangle - let rect_size = 10.0; + let rect_size = 5.0; println!("{} {}", x, y); commands.spawn(SpriteBundle {