attempt to detect hidpi changes? [rebuild]

This commit is contained in:
Dustin Carlino 2020-01-13 19:13:00 -08:00
parent 2bb5e3032b
commit 3482d61c0d

View File

@ -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);
}