From d28c867b610cac273b51fda7f96ee7033fab6601 Mon Sep 17 00:00:00 2001 From: John Nunley Date: Tue, 6 Feb 2024 19:02:41 -0800 Subject: [PATCH] chore: Rebase on latest master Signed-off-by: John Nunley --- winit/src/platform_impl/windows/event_loop/runner.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/winit/src/platform_impl/windows/event_loop/runner.rs b/winit/src/platform_impl/windows/event_loop/runner.rs index 05259b97f3..10f930d7db 100644 --- a/winit/src/platform_impl/windows/event_loop/runner.rs +++ b/winit/src/platform_impl/windows/event_loop/runner.rs @@ -408,12 +408,12 @@ impl BufferedEvent { if inner_size != new_inner_size { let window_flags = unsafe { - let userdata = - get_window_long(u64::from(window_id) as HWND, GWL_USERDATA) as *mut WindowData; + let userdata = get_window_long(u64::from(window_id) as HWND, GWL_USERDATA) + as *mut WindowData; (*userdata).window_state_lock().window_flags }; - window_flags.set_size((window_id.0).0, inner_size); + window_flags.set_size(u64::from(window_id) as HWND, inner_size); } } }