On Windows, change the default window size (#1805)

This commit is contained in:
Markus Røyset
2020-12-20 17:59:46 +01:00
committed by GitHub
parent c05952b813
commit 38fccebe1f
2 changed files with 2 additions and 1 deletions

View File

@@ -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.

View File

@@ -785,7 +785,7 @@ unsafe fn init<T: 'static>(
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