File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 15
15
- On Windows, add ` IconExtWindows ` trait which exposes creating an ` Icon ` from an external file or embedded resource
16
16
- Add ` BadIcon::OsError ` variant for when OS icon functionality fails
17
17
- On Windows, fix crash at startup on systems that do not properly support Windows' Dark Mode
18
+ - ** Breaking:** Use ` i32 ` instead of ` u32 ` for position type in ` WindowEvent::Moved ` .
18
19
19
20
# 0.21.0 (2020-02-04)
20
21
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ pub enum WindowEvent<'a> {
185
185
Resized ( PhysicalSize < u32 > ) ,
186
186
187
187
/// The position of the window has changed. Contains the window's new position.
188
- Moved ( PhysicalPosition < u32 > ) ,
188
+ Moved ( PhysicalPosition < i32 > ) ,
189
189
190
190
/// The window has been requested to close.
191
191
CloseRequested ,
Original file line number Diff line number Diff line change @@ -736,7 +736,7 @@ unsafe extern "system" fn public_window_callback<T: 'static>(
736
736
let windowpos = lparam as * const winuser:: WINDOWPOS ;
737
737
if ( * windowpos) . flags & winuser:: SWP_NOMOVE != winuser:: SWP_NOMOVE {
738
738
let physical_position =
739
- PhysicalPosition :: new ( ( * windowpos) . x as u32 , ( * windowpos) . y as u32 ) ;
739
+ PhysicalPosition :: new ( ( * windowpos) . x as i32 , ( * windowpos) . y as i32 ) ;
740
740
subclass_input. send_event ( Event :: WindowEvent {
741
741
window_id : RootWindowId ( WindowId ( window) ) ,
742
742
event : Moved ( physical_position) ,
You can’t perform that action at this time.
0 commit comments