Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(recording): allow the macOS-only cursor sample variant elsewhere
Richie McIlroy78353ef21eea
diff --git a/crates/recording/src/cursor.rs b/crates/recording/src/cursor.rsindex f715870a5..7827d6fe9 100644--- a/crates/recording/src/cursor.rs+++ b/crates/recording/src/cursor.rs@@ -814,8 +814,8 @@ struct CursorData {shape: Option<CursorShape>,}-/// What tells two cursor shapes apart without encoding them: the image's-/// rendered pixels, its size and its hotspot.+/// Cheap enough to take every tick (~0.1 ms against ~0.4 ms for the TIFF),+/// and changes whenever the TIFF would, since both come from the same image.#[cfg(target_os = "macos")]#[derive(PartialEq)]struct CursorFingerprint {@@ -831,6 +831,7 @@ struct CursorFingerprint;enum CursorSample {/// The cursor still matches the fingerprint of the last registered image.+ #[cfg_attr(not(target_os = "macos"), allow(dead_code))]Unchanged,Read {fingerprint: Option<CursorFingerprint>,