Skip to content

Commit

Permalink
use capture size for creating display frames
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich committed Oct 4, 2024
1 parent 738f694 commit ea9d1a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/desktop/src-tauri/src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ pub async fn start_capturing(

match frame {
Ok(Frame::BGRA(frame)) => {
let rgb_frame = bgra_frame(&frame.data, frame_size.0, frame_size.1);
let rgb_frame = bgra_frame(&frame.data, capture_size[0], capture_size[1]);

let mut yuv_frame = Video::empty();
scaler.run(&rgb_frame, &mut yuv_frame).unwrap();
Expand Down

1 comment on commit ea9d1a7

@vercel
Copy link

@vercel vercel bot commented on ea9d1a7 Oct 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.