diff options
Diffstat (limited to 'winit/src/program.rs')
-rw-r--r-- | winit/src/program.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/winit/src/program.rs b/winit/src/program.rs index 2bb0f910..95e8a281 100644 --- a/winit/src/program.rs +++ b/winit/src/program.rs @@ -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, } })); } |