Add missing check if updated output has a positive resolution

This commit is contained in:
Gergő Sályi 2024-09-30 20:13:20 +02:00
parent 77552b9426
commit 0749c9df34

View file

@ -360,6 +360,14 @@ logical size: {}x{}",
);
return;
};
if !width.is_positive() || !height.is_positive() {
error!(
"Updated output '{}' has non-positive resolution: {} x {}, skipping",
output_name, width, height
);
return;
}
let integer_scale_factor = info.scale_factor;