Fix unintuitive variable name in winit::program

This commit is contained in:
Héctor Ramón Jiménez 2025-01-06 23:24:12 +01:00
parent 82ac0e7bf9
commit ed199e5e8f
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -1293,30 +1293,30 @@ fn run_action<P, C>(
}
window::Action::SetMinSize(id, size) => {
if let Some(window) = window_manager.get_mut(id) {
window.raw.set_min_inner_size(size.map(|x| {
window.raw.set_min_inner_size(size.map(|size| {
winit::dpi::LogicalSize {
width: x.width,
height: x.height,
width: size.width,
height: size.height,
}
}));
}
}
window::Action::SetMaxSize(id, size) => {
if let Some(window) = window_manager.get_mut(id) {
window.raw.set_max_inner_size(size.map(|x| {
window.raw.set_max_inner_size(size.map(|size| {
winit::dpi::LogicalSize {
width: x.width,
height: x.height,
width: size.width,
height: size.height,
}
}));
}
}
window::Action::SetResizeIncrements(id, increments) => {
if let Some(window) = window_manager.get_mut(id) {
window.raw.set_resize_increments(increments.map(|x| {
window.raw.set_resize_increments(increments.map(|size| {
winit::dpi::LogicalSize {
width: x.width,
height: x.height,
width: size.width,
height: size.height,
}
}));
}