From 8c86710c7f724ff0b85b9f4e8758d5006ea0a550 Mon Sep 17 00:00:00 2001 From: Louis Capitanchik <contact@louiscap.co> Date: Mon, 3 Oct 2022 01:50:44 +0100 Subject: [PATCH] Add logging to web size constructor --- game_core/src/system/load_config.rs | 2 ++ game_core/src/system/resources.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/game_core/src/system/load_config.rs b/game_core/src/system/load_config.rs index 4221c06..8d172b9 100644 --- a/game_core/src/system/load_config.rs +++ b/game_core/src/system/load_config.rs @@ -38,6 +38,7 @@ mod setup { .and_then(|val| val.as_f64().map(|v| v as f32)) .unwrap_or(default_height); + log::info!("Using w/h without ratio: {}/{}", w, h); Some((w, h)) }) .unwrap_or((default_width, default_height)) @@ -62,6 +63,7 @@ mod setup { .and_then(|val| val.as_f64().map(|v| v as f32)) .unwrap_or(default_height); + log::info!("Using w/h with ratio: {}/{}", w, h / ratio); Some((w, h / ratio)) }) .unwrap_or((default_width, default_height)) diff --git a/game_core/src/system/resources.rs b/game_core/src/system/resources.rs index b684f08..9ac587c 100644 --- a/game_core/src/system/resources.rs +++ b/game_core/src/system/resources.rs @@ -11,8 +11,8 @@ impl Plugin for DefaultResourcesPlugin { let (width, height) = initial_size(); app.insert_resource(WindowDescriptor { - width: width * 2.0, - height: height * 2.0, + width: width * 3.0, + height: height * 3.0, resizable: true, title: String::from("Ludum Dare 51"), present_mode: PresentMode::AutoNoVsync, -- GitLab