Skip to content

Commit a5a5d41

Browse files
authored
Merge pull request #157 from rubenskj/fix/fixing-readme-typo
fix: correct typo and replace deprecated method usage
2 parents 5430331 + 1f7ee3d commit a5a5d41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ fn main() {
7373
excluded_targets: None,
7474
output_type: scap::frame::FrameType::BGRAFrame,
7575
output_resolution: scap::capturer::Resolution::_720p,
76-
source_rect: Some(Area {
76+
crop_area: Some(Area {
7777
origin: Point { x: 0.0, y: 0.0 },
7878
size: Size {
7979
width: 2000.0,
@@ -84,7 +84,7 @@ fn main() {
8484
};
8585

8686
// Create Capturer
87-
let mut capturer = Capturer::new(options);
87+
let mut capturer = Capturer::build(options).unwrap();
8888

8989
// Start Capture
9090
capturer.start_capture();

0 commit comments

Comments
 (0)