example-framework: resize surface on scale factor change

This commit is contained in:
Christofer Nolander authored and Dzmitry Malyshau committed 2021-08-27 15:10:03 -04:00
1 parent c3de161dd2
commit 39e8921fe8
1 file changed
+6 -1
+6 -1
View File
@@ -233,7 +233,12 @@ fn start<E: Example>(
window.request_redraw();
}
event::Event::WindowEvent {
event: WindowEvent::Resized(size),
event:
WindowEvent::Resized(size)
| WindowEvent::ScaleFactorChanged {
new_inner_size: &mut size,
..
},
..
} => {
log::info!("Resizing to {:?}", size);