From b113bb8a097b9ffcb6940be3f84892f206b7132f Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Sat, 10 Sep 2022 23:14:47 -0400 Subject: fix: formatting --- winit/src/application/state.rs | 9 +++++++-- 1 file 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( -- cgit