Skip to content

Commit 7da02c2

Browse files
committed
Update mod.rs
fmt
1 parent bdb9e51 commit 7da02c2

File tree

1 file changed

+4
-2
lines changed
  • crates/recording/src/sources/screen_capture

1 file changed

+4
-2
lines changed

crates/recording/src/sources/screen_capture/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,10 @@ impl<TCaptureFormat: ScreenCaptureFormat> ScreenCaptureConfig<TCaptureFormat> {
317317
))
318318
}
319319

320-
#[cfg(windows)]
321-
Some(b.size().map(|v| (v / 2.0).floor() * 2.0))
320+
#[cfg(target_os = "windows")]
321+
{
322+
Some(b.size().map(|v| (v / 2.0).floor() * 2.0))
323+
}
322324
})
323325
.or_else(|| display.physical_size())
324326
.ok_or(ScreenCaptureInitError::NoBounds)?;

0 commit comments

Comments
 (0)