Fix crashes due to Responsive scaling #91

Merged
raphael merged 2 commits from fiw-reponsive(scaling into main 2024-03-31 16:27:32 +00:00
Showing only changes of commit b84f076a49 - Show all commits

View file

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