feat(renderer): added scale_factor to the trait to allow checking for scale factors in the event loop

This commit is contained in:
lisk77 2025-10-26 02:32:50 +02:00
parent dd89d71565
commit 87f0233066
3 changed files with 32 additions and 7 deletions

View file

@ -381,6 +381,9 @@ impl App {
WindowEvent::Resized(physical_size) => {
renderer.resize(*physical_size);
}
WindowEvent::ScaleFactorChanged { scale_factor, .. } => {
renderer.set_scale_factor(*scale_factor);
}
WindowEvent::RedrawRequested => {
window.request_redraw();
match renderer.render() {