fix: formatting
This commit is contained in:
parent
8de87b8f1b
commit
b113bb8a09
1 changed files with 7 additions and 2 deletions
|
|
@ -194,8 +194,13 @@ where
|
||||||
// Update scale factor and size
|
// Update scale factor and size
|
||||||
let new_scale_factor = application.scale_factor();
|
let new_scale_factor = application.scale_factor();
|
||||||
let Size { width, height } = self.viewport.physical_size();
|
let Size { width, height } = self.viewport.physical_size();
|
||||||
let PhysicalSize { width: w_width, height: w_height} = window.inner_size();
|
let PhysicalSize {
|
||||||
if self.scale_factor != new_scale_factor || (width, height) != (w_width, w_height) {
|
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();
|
let size = window.inner_size();
|
||||||
|
|
||||||
self.viewport = Viewport::with_physical_size(
|
self.viewport = Viewport::with_physical_size(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue