summaryrefslogtreecommitdiffstats
path: root/winit/src/application
diff options
context:
space:
mode:
Diffstat (limited to 'winit/src/application')
-rw-r--r--winit/src/application/state.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/winit/src/application/state.rs b/winit/src/application/state.rs
index 6b02736e..5525cbd5 100644
--- a/winit/src/application/state.rs
+++ b/winit/src/application/state.rs
@@ -194,8 +194,13 @@ where
// Update scale factor and size
let new_scale_factor = application.scale_factor();
let Size { width, height } = self.viewport.physical_size();
- let PhysicalSize { width: w_width, height: w_height} = window.inner_size();
- if self.scale_factor != new_scale_factor || (width, height) != (w_width, w_height) {
+ let PhysicalSize {
+ width: w_width,
+ height: w_height,
+ } = window.inner_size();
+ if self.scale_factor != new_scale_factor
+ || (width, height) != (w_width, w_height)
+ {
let size = window.inner_size();
self.viewport = Viewport::with_physical_size(