Change Monitor dimensions functions to size functions (#911)
This commit is contained in:
parent
47b5dfa034
commit
ea5c21950c
12 changed files with 34 additions and 34 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.dimensions(), 1.0)
|
||||
LogicalSize::from_physical(monitor.size(), 1.0)
|
||||
} else {
|
||||
// default dimensions
|
||||
(1024, 768).into()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue