From ed199e5e8f5bc210ffc923553983e5d3aa6ee5b6 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 6 Jan 2025 23:24:12 +0100 Subject: Fix unintuitive variable name in `winit::program` --- winit/src/program.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'winit') 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( } 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, } })); } -- cgit