mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-29 17:34:58 +03:00
attempt to detect hidpi changes? [rebuild]
This commit is contained in:
parent
2bb5e3032b
commit
3482d61c0d
@ -371,6 +371,13 @@ fn loop_forever<G: GUI>(
|
||||
state.gui.before_quit(&state.canvas);
|
||||
process::exit(0);
|
||||
}
|
||||
if let glutin::WindowEvent::HiDpiFactorChanged(hidpi_factor) = event {
|
||||
println!(
|
||||
"HiDPI factor changed from {} to {}",
|
||||
state.canvas.hidpi_factor, hidpi_factor
|
||||
);
|
||||
state.canvas.hidpi_factor = hidpi_factor;
|
||||
}
|
||||
if dump_raw_events {
|
||||
println!("Event: {:?}", event);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user