commit
All checks were successful
Rust Checks / checks (push) Successful in 3m47s
Rust Checks / checks (pull_request) Successful in 2m51s

This commit is contained in:
raphael 2024-03-31 18:19:45 +02:00
parent 3afb84d1cc
commit d2698a9497

View file

@ -29,6 +29,9 @@ pub fn change_scaling(
size: Res<UILayoutSize>,
) {
let window = windows.get_single().expect("Main window not found");
if !window.resolution.physical_height() > 0 {
return;
};
let (a, b) = (
window.resolution.width() / size.0.x,
window.resolution.height() / size.0.y,