From 38fccebe1fbc4226c75d6180e5317bd93c024951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20R=C3=83=C2=B8yset?= Date: Sun, 20 Dec 2020 17:59:46 +0100 Subject: [PATCH] On Windows, change the default window size (#1805) --- CHANGELOG.md | 1 + src/platform_impl/windows/window.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 602c209d..3ea826f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # Unreleased +- On Windows, change the default window size (1024x768) to match the default on other desktop platforms (800x600). - On Windows, fix bug causing mouse capture to not be released. - On Windows, fix fullscreen not preserving minimized/maximized state. diff --git a/src/platform_impl/windows/window.rs b/src/platform_impl/windows/window.rs index 0d7a5a7c..0eb76160 100644 --- a/src/platform_impl/windows/window.rs +++ b/src/platform_impl/windows/window.rs @@ -785,7 +785,7 @@ unsafe fn init( let dimensions = attributes .inner_size - .unwrap_or_else(|| PhysicalSize::new(1024, 768).into()); + .unwrap_or_else(|| PhysicalSize::new(800, 600).into()); win.set_inner_size(dimensions); if attributes.maximized { // Need to set MAXIMIZED after setting `inner_size` as