Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix: Rounded full on video and h_cloned
Richie McIlroyadd6525850f1
diff --git a/apps/desktop/src-tauri/src/media.rs b/apps/desktop/src-tauri/src/media.rsindex 26bdb7e7f..2afcc9b4f 100644--- a/apps/desktop/src-tauri/src/media.rs+++ b/apps/desktop/src-tauri/src/media.rs@@ -304,6 +304,7 @@ impl MediaRecorder {screenshot_captured = true;let screenshot_file_path_owned_cloned = screenshot_file_path_owned.clone();let w_cloned = adjusted_width.clone();+ let h_cloned = adjusted_height.clone();let frame_clone = frame.to_vec();std::thread::spawn(move || {@@ -320,14 +321,13 @@ impl MediaRecorder {for chunk in row_data.chunks_mut(4) {chunk.swap(0, 2);}- println!("Row data length: {}", row_data.len());frame_data.extend_from_slice(&row_data);}let path = Path::new(&screenshot_file_path_owned_cloned);let image: ImageBuffer<Rgba<u8>, Vec<u8>> = ImageBuffer::from_raw(w_cloned.try_into().unwrap(),- h.try_into().unwrap(),+ h_cloned.try_into().unwrap(),frame_data).expect("Failed to create image buffer");diff --git a/apps/desktop/src/components/windows/Camera.tsx b/apps/desktop/src/components/windows/Camera.tsxindex a3d44c861..833d1d2bc 100644--- a/apps/desktop/src/components/windows/Camera.tsx+++ b/apps/desktop/src/components/windows/Camera.tsx@@ -154,7 +154,7 @@ export const Camera = () => {autoPlayplaysInlinemuted- className="absolute top-0 left-0 w-full h-full object-cover pointer-events-none"+ className="absolute top-0 left-0 w-full h-full object-cover pointer-events-none rounded-full"/></div>);