We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31b3998 commit 56ee252Copy full SHA for 56ee252
src/event/source/windows.rs
@@ -66,8 +66,8 @@ impl EventSource for WindowsEventSource {
66
InputRecord::WindowBufferSizeEvent(record) => {
67
// windows starts counting at 0, unix at 1, add one to replicate unix behaviour.
68
Some(Event::Resize(
69
- record.size.x as u16 + 1,
70
- record.size.y as u16 + 1,
+ (record.size.x as i32 + 1) as u16,
+ (record.size.y as i32 + 1) as u16,
71
))
72
}
73
InputRecord::FocusEvent(record) => {
0 commit comments