mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-28 07:33:14 -04:00
Use i32 instead of u32 for position type in WindowEvent::Moved (#1502)
* Use i32 instead of u32 for position type in WindowEvent::Moved * Mark change as breaking
This commit is contained in:
@@ -736,7 +736,7 @@ unsafe extern "system" fn public_window_callback<T: 'static>(
|
||||
let windowpos = lparam as *const winuser::WINDOWPOS;
|
||||
if (*windowpos).flags & winuser::SWP_NOMOVE != winuser::SWP_NOMOVE {
|
||||
let physical_position =
|
||||
PhysicalPosition::new((*windowpos).x as u32, (*windowpos).y as u32);
|
||||
PhysicalPosition::new((*windowpos).x as i32, (*windowpos).y as i32);
|
||||
subclass_input.send_event(Event::WindowEvent {
|
||||
window_id: RootWindowId(WindowId(window)),
|
||||
event: Moved(physical_position),
|
||||
|
||||
Reference in New Issue
Block a user