diff --git a/crates/capture/src/main.rs b/crates/capture/src/main.rs index af67ed9da4..36efe369f9 100644 --- a/crates/capture/src/main.rs +++ b/crates/capture/src/main.rs @@ -123,8 +123,8 @@ impl ScreenCaptureView { // let filter: id = msg_send![filter, initWithDesktopIndependentWindow: window]; let config: id = msg_send![class!(SCStreamConfiguration), alloc]; let config: id = msg_send![config, init]; - let _: () = msg_send![config, setWidth: display_width]; - let _: () = msg_send![config, setHeight: display_height]; + let _: () = msg_send![config, setWidth: display_width * 2]; + let _: () = msg_send![config, setHeight: display_height * 2]; let _: () = msg_send![config, setMinimumFrameInterval: bindings::CMTimeMake(1, 60)]; let _: () = msg_send![config, setQueueDepth: 6]; let _: () = msg_send![config, setShowsCursor: YES]; diff --git a/crates/gpui/src/platform/mac/renderer.rs b/crates/gpui/src/platform/mac/renderer.rs index 8bf512a1a7..ad0915ed5b 100644 --- a/crates/gpui/src/platform/mac/renderer.rs +++ b/crates/gpui/src/platform/mac/renderer.rs @@ -816,7 +816,7 @@ impl Renderer { surface.image_buffer.width() as i32, surface.image_buffer.height() as i32, ); - let target_size = surface.bounds.size(); + let target_size = surface.bounds.size() * scale_factor; let pixel_format = if surface.image_buffer.pixel_format_type() == core_video::kCVPixelFormatType_32BGRA {