summaryrefslogtreecommitdiffstats
path: root/winit
diff options
context:
space:
mode:
authorLibravatar Ashley Wulber <ashley@system76.com>2022-09-10 23:14:47 -0400
committerLibravatar Ashley Wulber <ashley@system76.com>2022-09-10 23:14:47 -0400
commitb113bb8a097b9ffcb6940be3f84892f206b7132f (patch)
tree1d25bad879841bbca99584f4b0712f6ae522d3ff /winit
parent8de87b8f1b917ac0b86b101bb4bc77fd51a2efba (diff)
downloadiced-b113bb8a097b9ffcb6940be3f84892f206b7132f.tar.gz
iced-b113bb8a097b9ffcb6940be3f84892f206b7132f.tar.bz2
iced-b113bb8a097b9ffcb6940be3f84892f206b7132f.zip
fix: formatting
Diffstat (limited to 'winit')
-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(