From 99e1a3780a1ea3ccb173d1fb4cbe889bb08b9643 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 23 Oct 2019 04:44:33 +0200 Subject: Set initial window size to 1280x1024 for now This will be configurable when calling `Application::run` in the future. --- winit/src/application.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'winit/src/application.rs') diff --git a/winit/src/application.rs b/winit/src/application.rs index 8345a5ed..418ee3c4 100644 --- a/winit/src/application.rs +++ b/winit/src/application.rs @@ -26,6 +26,10 @@ pub trait Application { // TODO: Ask for window settings and configure this properly let window = WindowBuilder::new() + .with_inner_size(winit::dpi::LogicalSize { + width: 1280.0, + height: 1024.0, + }) .build(&event_loop) .expect("Open window"); -- cgit