Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

some more windows compile fixes

Brendan Allanf4f878bf6e95
diff --git a/crates/recording/src/actor.rs b/crates/recording/src/actor.rs
index 756afe8eb..70d03af1f 100644
--- a/crates/recording/src/actor.rs
+++ b/crates/recording/src/actor.rs
@@ -527,7 +527,6 @@ fn create_screen_capture(
{
ScreenCaptureSource::<cap_media::sources::AVFrameCapture>::init(
&recording_options.capture_target,
- recording_options.output_resolution.clone(),
None,
)
}
diff --git a/crates/recording/src/cursor.rs b/crates/recording/src/cursor.rs
index 65dbb7400..b39856fca 100644
--- a/crates/recording/src/cursor.rs
+++ b/crates/recording/src/cursor.rs
@@ -226,7 +226,7 @@ fn get_cursor_image_data() -> Option<CursorData> {
}
#[cfg(windows)]
-fn get_cursor_image_data() -> Option<Vec<u8>> {
+fn get_cursor_image_data() -> Option<CursorData> {
use windows::Win32::Foundation::{HWND, POINT};
use windows::Win32::Graphics::Gdi::{
BitBlt, CreateCompatibleDC, CreateDIBSection, DeleteDC, DeleteObject, GetDC, GetObjectA,
@@ -351,6 +351,9 @@ fn get_cursor_image_data() -> Option<Vec<u8>> {
)
.ok()?;
- Some(png_data)
+ Some(CursorData {
+ image: png_data,
+ hotspot: XY::new(0.0, 0.0),
+ })
}
}