mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 05:40:04 -04:00
On Windows, change the default window size (#1805)
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
# Unreleased
|
# 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 bug causing mouse capture to not be released.
|
||||||
- On Windows, fix fullscreen not preserving minimized/maximized state.
|
- On Windows, fix fullscreen not preserving minimized/maximized state.
|
||||||
|
|
||||||
|
|||||||
@@ -785,7 +785,7 @@ unsafe fn init<T: 'static>(
|
|||||||
|
|
||||||
let dimensions = attributes
|
let dimensions = attributes
|
||||||
.inner_size
|
.inner_size
|
||||||
.unwrap_or_else(|| PhysicalSize::new(1024, 768).into());
|
.unwrap_or_else(|| PhysicalSize::new(800, 600).into());
|
||||||
win.set_inner_size(dimensions);
|
win.set_inner_size(dimensions);
|
||||||
if attributes.maximized {
|
if attributes.maximized {
|
||||||
// Need to set MAXIMIZED after setting `inner_size` as
|
// Need to set MAXIMIZED after setting `inner_size` as
|
||||||
|
|||||||
Reference in New Issue
Block a user