Apply scale_factor to sizing tasks in window
This commit is contained in:
parent
74b792b608
commit
c65bfd1afb
1 changed files with 13 additions and 1 deletions
|
|
@ -1194,7 +1194,10 @@ fn run_action<'a, P, C>(
|
|||
winit::dpi::LogicalSize {
|
||||
width: size.width,
|
||||
height: size.height,
|
||||
},
|
||||
}
|
||||
.to_physical::<f32>(f64::from(
|
||||
window.state.scale_factor(),
|
||||
)),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
@ -1205,6 +1208,9 @@ fn run_action<'a, P, C>(
|
|||
width: size.width,
|
||||
height: size.height,
|
||||
}
|
||||
.to_physical::<f32>(f64::from(
|
||||
window.state.scale_factor(),
|
||||
))
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
|
@ -1215,6 +1221,9 @@ fn run_action<'a, P, C>(
|
|||
width: size.width,
|
||||
height: size.height,
|
||||
}
|
||||
.to_physical::<f32>(f64::from(
|
||||
window.state.scale_factor(),
|
||||
))
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
|
@ -1225,6 +1234,9 @@ fn run_action<'a, P, C>(
|
|||
width: size.width,
|
||||
height: size.height,
|
||||
}
|
||||
.to_physical::<f32>(f64::from(
|
||||
window.state.scale_factor(),
|
||||
))
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue