Change inequality to equality for the responsive scaling (#92)
All checks were successful
Rust Checks / checks (push) Successful in 2m45s

Reviewed-on: fish-canard/border-wars#92
Reviewed-by: Tipragot <contact@tipragot.fr>
This commit is contained in:
CoCo_Sol 2024-03-31 21:46:02 +00:00
parent ceca7d3681
commit 949356449c

View file

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