Skip to content

Commit

Permalink
Bug Fix ⭐
Browse files Browse the repository at this point in the history
	modified:   Cargo.lock
	modified:   Cargo.toml
	modified:   README.md
	modified:   examples/basic.rs
	modified:   src/capture.rs
	modified:   src/frame.rs
	modified:   src/graphics_capture_api.rs
	modified:   src/lib.rs
	modified:   windows-capture-python/Cargo.lock
	modified:   windows-capture-python/Cargo.toml
	modified:   windows-capture-python/pyproject.toml
	modified:   windows-capture-python/src/lib.rs
  • Loading branch information
NiiightmareXD committed Nov 23, 2023
1 parent edccad0 commit a76944c
Show file tree
Hide file tree
Showing 12 changed files with 106 additions and 136 deletions.
43 changes: 2 additions & 41 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "windows-capture"
version = "1.0.29"
version = "1.0.32"
authors = ["NiiightmareXD"]
edition = "2021"
description = "Fastest Windows Screen Capture Library For Rust 🔥"
Expand All @@ -21,7 +21,6 @@ resolver = "2"
[dependencies]
image = "0.24.7"
log = "0.4.20"
ndarray = "0.15.6"
parking_lot = "0.12.1"
thiserror = "1.0.50"
windows = { version = "0.52.0", features = [
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Add this library to your `Cargo.toml`:

```toml
[dependencies]
windows-capture = "1.0.29"
windows-capture = "1.0.32"
```
or run this command

Expand Down Expand Up @@ -56,7 +56,7 @@ impl WindowsCaptureHandler for Capture {
// Called Every Time A New Frame Is Available
fn on_frame_arrived(
&mut self,
mut frame: Frame,
frame: &mut Frame,
capture_control: InternalCaptureControl,
) -> Result<(), Box<dyn Error + Send + Sync>> {
println!("New Frame Arrived");
Expand Down
2 changes: 1 addition & 1 deletion examples/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl WindowsCaptureHandler for Capture {
// Called Every Time A New Frame Is Available
fn on_frame_arrived(
&mut self,
mut frame: Frame,
frame: &mut Frame,
capture_control: InternalCaptureControl,
) -> Result<(), Box<dyn Error + Send + Sync>> {
println!("New Frame Arrived");
Expand Down
2 changes: 1 addition & 1 deletion src/capture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ pub trait WindowsCaptureHandler: Sized {
/// Called Every Time A New Frame Is Available
fn on_frame_arrived(
&mut self,
frame: Frame,
frame: &mut Frame,
capture_control: InternalCaptureControl,
) -> Result<(), Box<dyn Error + Send + Sync>>;

Expand Down
Loading

0 comments on commit a76944c

Please sign in to comment.