mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
example-framework: resize surface on scale factor change
This commit is contained in:
committed by
Dzmitry Malyshau
parent
c3de161dd2
commit
39e8921fe8
@@ -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