Skip to content
Snippets Groups Projects
Verified Commit 8c86710c authored by Louis's avatar Louis :fire:
Browse files

Add logging to web size constructor

parent 639a822d
No related branches found
No related tags found
No related merge requests found
Pipeline #176 passed with stages
in 3 minutes and 5 seconds
......@@ -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))
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment