Skip to content

Commit f69ff61

Browse files
committed
expose handle_window_event for WinitPlatform trait
Suits the winit API changes introduced in 0.30.0: https://github.com/rust-windowing/winit/releases/tag/v0.30.0
1 parent 031aaec commit f69ff61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ impl WinitPlatform {
157157
_ => (),
158158
}
159159
}
160-
fn handle_window_event(&mut self, io: &mut Io, window: &Window, event: &WindowEvent) {
160+
pub fn handle_window_event(&mut self, io: &mut Io, window: &Window, event: &WindowEvent) {
161161
match *event {
162162
WindowEvent::Resized(physical_size) => {
163163
let logical_size = physical_size.to_logical(window.scale_factor());

0 commit comments

Comments
 (0)