From 83012f4c1c8c861f018bddd946073b2f245262a5 Mon Sep 17 00:00:00 2001 From: AryaveerSR Date: Mon, 12 Feb 2024 22:50:03 +0530 Subject: [PATCH] Fix Documentation for `ScaleFactorChanged` in `WindowEvent`. (#3489) --- src/event.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/event.rs b/src/event.rs index 798721c0..4da049c4 100644 --- a/src/event.rs +++ b/src/event.rs @@ -536,9 +536,8 @@ pub enum WindowEvent { /// * Changing the display's scale factor (e.g. in Control Panel on Windows). /// * Moving the window to a display with a different scale factor. /// - /// After this event callback has been processed, the window will be resized to whatever value - /// is pointed to by the `new_inner_size` reference. By default, this will contain the size suggested - /// by the OS, but it can be changed to any value. + /// To update the window size, use the provided [`InnerSizeWriter`] handle. By default, the window is + /// resized to the value suggested by the OS, but it can be changed to any value. /// /// For more information about DPI in general, see the [`dpi`](crate::dpi) module. ScaleFactorChanged {