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:   src/graphics_capture_api.rs
	modified:   src/lib.rs
	modified:   windows-capture-python/Cargo.toml
	modified:   windows-capture-python/pyproject.toml
  • Loading branch information
NiiightmareXD committed Nov 10, 2023
1 parent ab0cc6a commit e3234e6
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "windows-capture"
version = "1.0.27"
version = "1.0.28"
authors = ["NiiightmareXD"]
edition = "2021"
description = "Fastest Windows Screen Capture Library For Rust 🔥"
Expand Down
2 changes: 1 addition & 1 deletion 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.27"
windows-capture = "1.0.28"
```
or run this command

Expand Down
4 changes: 0 additions & 4 deletions src/graphics_capture_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use std::{
atomic::{self, AtomicBool},
Arc,
},
time::Instant,
};

use log::{info, trace};
Expand Down Expand Up @@ -168,8 +167,6 @@ impl GraphicsCaptureApi {
let direct3d_device_recreate = SendDirectX::new(direct3d_device.clone());

move |frame, _| {
let instant = Instant::now();

// Return Early If The Capture Is Closed
if closed_frame_pool.load(atomic::Ordering::Relaxed) {
return Ok(());
Expand Down Expand Up @@ -295,7 +292,6 @@ impl GraphicsCaptureApi {
.expect("Failed To Replace RESULT");
}

println!("Took: {}", instant.elapsed().as_nanos() as f64 / 1000000.0);
Result::Ok(())
}
}),
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
//!
//! ```toml
//! [dependencies]
//! windows-capture = "1.0.27"
//! windows-capture = "1.0.28"
//! ```
//! or run this command
//!
Expand Down
2 changes: 1 addition & 1 deletion windows-capture-python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "windows-capture-python"
version = "1.0.27"
version = "1.0.28"
authors = ["NiiightmareXD"]
edition = "2021"
description = "Fastest Windows Screen Capture Library For Python 🔥"
Expand Down
2 changes: 1 addition & 1 deletion windows-capture-python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "maturin"

[project]
name = "windows-capture"
version = "1.0.27"
version = "1.0.28"
description = "Fastest Windows Screen Capture Library For Python 🔥"
readme = "README.md"
requires-python = ">=3.9"
Expand Down

0 comments on commit e3234e6

Please sign in to comment.