Fix initial dimensions of a fullscreen window on Windows (#909)
This commit is contained in:
parent
db794b976c
commit
91f05e940f
2 changed files with 2 additions and 1 deletions
|
|
@ -287,7 +287,7 @@ impl WindowBuilder {
|
|||
self.window.inner_size = Some(self.window.inner_size.unwrap_or_else(|| {
|
||||
if let Some(ref monitor) = self.window.fullscreen {
|
||||
// resizing the window to the dimensions of the monitor when fullscreen
|
||||
LogicalSize::from_physical(monitor.size(), 1.0)
|
||||
LogicalSize::from_physical(monitor.size(), monitor.hidpi_factor()) // DPI factor applies here since this is a borderless window and not real fullscreen
|
||||
} else {
|
||||
// default dimensions
|
||||
(1024, 768).into()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue