Fix unintuitive variable name in winit::program
This commit is contained in:
parent
82ac0e7bf9
commit
ed199e5e8f
1 changed files with 9 additions and 9 deletions
|
|
@ -1293,30 +1293,30 @@ fn run_action<P, C>(
|
||||||
}
|
}
|
||||||
window::Action::SetMinSize(id, size) => {
|
window::Action::SetMinSize(id, size) => {
|
||||||
if let Some(window) = window_manager.get_mut(id) {
|
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 {
|
winit::dpi::LogicalSize {
|
||||||
width: x.width,
|
width: size.width,
|
||||||
height: x.height,
|
height: size.height,
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
window::Action::SetMaxSize(id, size) => {
|
window::Action::SetMaxSize(id, size) => {
|
||||||
if let Some(window) = window_manager.get_mut(id) {
|
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 {
|
winit::dpi::LogicalSize {
|
||||||
width: x.width,
|
width: size.width,
|
||||||
height: x.height,
|
height: size.height,
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
window::Action::SetResizeIncrements(id, increments) => {
|
window::Action::SetResizeIncrements(id, increments) => {
|
||||||
if let Some(window) = window_manager.get_mut(id) {
|
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 {
|
winit::dpi::LogicalSize {
|
||||||
width: x.width,
|
width: size.width,
|
||||||
height: x.height,
|
height: size.height,
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue