diff options
Diffstat (limited to 'winit')
-rw-r--r-- | winit/src/program.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/winit/src/program.rs b/winit/src/program.rs index 416c8e70..58f4d96d 100644 --- a/winit/src/program.rs +++ b/winit/src/program.rs @@ -1311,6 +1311,16 @@ fn run_action<P, C>( })); } } + window::Action::SetResizeIncrements(id, increments) => { + if let Some(window) = window_manager.get_mut(id) { + window.raw.set_resize_increments(increments.map(|x| { + winit::dpi::LogicalSize { + width: x.width, + height: x.height, + } + })); + } + } window::Action::ChangeTitle(id, title) => { if let Some(window) = window_manager.get_mut(id) { window.raw.set_title(&title); |