From 3a0d159df4920707b4a601fff58db3aa10140c7b Mon Sep 17 00:00:00 2001 From: Rohit Sangwan Date: Sun, 31 Aug 2025 10:10:28 +0530 Subject: [PATCH 1/2] Fix windows compilation beuase of timestamp typo --- src/capturer/engine/win/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/capturer/engine/win/mod.rs b/src/capturer/engine/win/mod.rs index 227aa32..3093541 100644 --- a/src/capturer/engine/win/mod.rs +++ b/src/capturer/engine/win/mod.rs @@ -76,7 +76,7 @@ impl GraphicsCaptureApiHandler for Capturer { frame: &mut WCFrame, _: InternalCaptureControl, ) -> Result<(), Self::Error> { - let elapsed = frame.timespan().Duration - self.start_time.0; + let elapsed = frame.timestamp().Duration - self.start_time.0; let display_time = self .start_time .1 From 834eca4ea219039f58b5623456ed6db4898156c5 Mon Sep 17 00:00:00 2001 From: Rohit Sangwan Date: Thu, 4 Sep 2025 16:40:39 +0530 Subject: [PATCH 2/2] expose get_target_dimensions --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index d0d7360..9b0fec0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,7 +6,7 @@ mod targets; mod utils; // Helper Methods -pub use targets::{get_all_targets, get_main_display}; +pub use targets::{get_all_targets, get_main_display, get_target_dimensions}; pub use targets::{Display, Target}; pub use utils::has_permission; pub use utils::is_supported;