We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdb9e51 commit 7da02c2Copy full SHA for 7da02c2
crates/recording/src/sources/screen_capture/mod.rs
@@ -317,8 +317,10 @@ impl<TCaptureFormat: ScreenCaptureFormat> ScreenCaptureConfig<TCaptureFormat> {
317
))
318
}
319
320
- #[cfg(windows)]
321
- Some(b.size().map(|v| (v / 2.0).floor() * 2.0))
+ #[cfg(target_os = "windows")]
+ {
322
+ Some(b.size().map(|v| (v / 2.0).floor() * 2.0))
323
+ }
324
})
325
.or_else(|| display.physical_size())
326
.ok_or(ScreenCaptureInitError::NoBounds)?;
0 commit comments