Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Refactor static slice and icon extraction logic
Richie McIlroyb6b7975d6edf
diff --git a/crates/scap-targets/src/platform/win.rs b/crates/scap-targets/src/platform/win.rsindex 18548666e..c3573e54e 100644--- a/crates/scap-targets/src/platform/win.rs+++ b/crates/scap-targets/src/platform/win.rs@@ -57,7 +57,7 @@ use crate::bounds::{LogicalSize, PhysicalBounds, PhysicalPosition, PhysicalSize}// On Windows it's nigh impossible to get the logical position of a display// or window, since there's no simple API that accounts for each monitor having different DPI.-static IGNORED_EXES: &'static [&str] = &[+static IGNORED_EXES: &[&str] = &[// As it's a system webview it isn't owned by the Cap process."webview2","msedgewebview2",@@ -557,10 +557,9 @@ impl WindowImpl {if large_icon.0 != 0&& let Some(result) = self.hicon_to_png_bytes_optimized(HICON(large_icon.0 as _))+ && result.1 >= GOOD_SIZE_THRESHOLD{- if result.1 >= GOOD_SIZE_THRESHOLD {- return Some(result.0);- }+ return Some(result.0);}// Method 4: Try executable file extraction (fallback to original method)