Skip to content

Commit

Permalink
Add Crop 🎉
Browse files Browse the repository at this point in the history
	modified:   Cargo.lock
	modified:   Cargo.toml
	modified:   README.md
	modified:   src/capture.rs
	modified:   src/frame.rs
	modified:   src/graphics_capture_api.rs
	modified:   src/lib.rs
	modified:   src/monitor.rs
	modified:   src/window.rs
	modified:   windows-capture-python/Cargo.lock
	modified:   windows-capture-python/Cargo.toml
	modified:   windows-capture-python/pyproject.toml
  • Loading branch information
NiiightmareXD committed Nov 15, 2023
1 parent e5b0586 commit 35c31f5
Show file tree
Hide file tree
Showing 12 changed files with 340 additions and 157 deletions.
105 changes: 81 additions & 24 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "windows-capture"
version = "1.0.28"
version = "1.0.29"
authors = ["NiiightmareXD"]
edition = "2021"
description = "Fastest Windows Screen Capture Library For Rust 🔥"
Expand All @@ -23,8 +23,8 @@ image = "0.24.7"
log = "0.4.20"
ndarray = "0.15.6"
parking_lot = "0.12.1"
thiserror = "1.0.49"
windows = { version = "0.51.1", features = [
thiserror = "1.0.50"
windows = { version = "0.52.0", features = [
"Win32_System_WinRT_Graphics_Capture",
"Win32_Graphics_Direct3D11",
"Win32_Foundation",
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.28"
windows-capture = "1.0.29"
```
or run this command

Expand Down
3 changes: 2 additions & 1 deletion src/capture.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::{
error::Error,
mem,
os::windows::prelude::AsRawHandle,
thread::{self, JoinHandle},
};
Expand Down Expand Up @@ -123,7 +124,7 @@ pub trait WindowsCaptureHandler: Sized {
// Create A Dispatcher Queue For Current Thread
trace!("Creating A Dispatcher Queue For Capture Thread");
let options = DispatcherQueueOptions {
dwSize: std::mem::size_of::<DispatcherQueueOptions>() as u32,
dwSize: mem::size_of::<DispatcherQueueOptions>() as u32,
threadType: DQTYPE_THREAD_CURRENT,
apartmentType: DQTAT_COM_NONE,
};
Expand Down
Loading

0 comments on commit 35c31f5

Please sign in to comment.