Skip to content

Commit 6ef9230

Browse files
committed
Update resolution_limits.rs
1 parent fa91e47 commit 6ef9230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/recording/src/resolution_limits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub fn calculate_gpu_compatible_size(
88
max_dimension: u32,
99
) -> Option<(u32, u32)> {
1010
let needs_downscale = width > max_dimension || height > max_dimension;
11-
let needs_even_adjustment = width % 2 != 0 || height % 2 != 0;
11+
let needs_even_adjustment = !width.is_multiple_of(2) || !height.is_multiple_of(2);
1212

1313
if !needs_downscale && !needs_even_adjustment {
1414
return None;

0 commit comments

Comments
 (0)