mirror of
https://github.com/storytold/wgpu.git
synced 2026-12-01 02:24:35 +01:00
example-framework: resize surface on scale factor change
This commit is contained in:
1 parent
c3de161dd2
commit
39e8921fe8
1 file changed
+6
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user