diff --git a/Cargo.lock b/Cargo.lock index 619e700..86100e9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -548,7 +548,7 @@ dependencies = [ [[package]] name = "windows-capture" -version = "1.0.47" +version = "1.0.50" dependencies = [ "image", "log", @@ -560,7 +560,7 @@ dependencies = [ [[package]] name = "windows-capture-python" -version = "1.0.47" +version = "1.0.50" dependencies = [ "pyo3", "thiserror", diff --git a/Cargo.toml b/Cargo.toml index ac067c5..a74096a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows-capture" -version = "1.0.47" +version = "1.0.50" authors = ["NiiightmareXD"] edition = "2021" description = "Fastest Windows Screen Capture Library For Rust 🔥" diff --git a/README.md b/README.md index 8fa4d96..0c4a321 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Add this library to your `Cargo.toml`: ```toml [dependencies] -windows-capture = "1.0.47" +windows-capture = "1.0.50" ``` or run this command diff --git a/src/lib.rs b/src/lib.rs index d6887ca..15b971c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -22,7 +22,7 @@ //! //! ```toml //! [dependencies] -//! windows-capture = "1.0.47" +//! windows-capture = "1.0.50" //! ``` //! or run this command //! diff --git a/windows-capture-python/Cargo.toml b/windows-capture-python/Cargo.toml index b029b3f..a2e4593 100644 --- a/windows-capture-python/Cargo.toml +++ b/windows-capture-python/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows-capture-python" -version = "1.0.47" +version = "1.0.50" authors = ["NiiightmareXD"] edition = "2021" description = "Fastest Windows Screen Capture Library For Python 🔥" diff --git a/windows-capture-python/README.md b/windows-capture-python/README.md index 3c3637e..7729913 100644 --- a/windows-capture-python/README.md +++ b/windows-capture-python/README.md @@ -1,5 +1,13 @@ -# Windows Capture -![Crates.io](https://img.shields.io/crates/l/windows-capture) ![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/NiiightmareXD/windows-capture/rust.yml) ![PyPI - Version](https://img.shields.io/pypi/v/windows-capture) +# Windows Capture   [![Licence]][Licence URL] [![Build Status]][repository] [![Latest Version]][crates.io] + +[Licence]: https://img.shields.io/crates/l/windows-capture +[Licence URL]: https://github.com/NiiightmareXD/windows-capture/blob/main/LICENCE + +[Build Status]: https://img.shields.io/github/actions/workflow/status/NiiightmareXD/windows-capture/rust.yml +[repository]: https://github.com/NiiightmareXD/windows-capture + +[Latest Version]: https://img.shields.io/pypi/v/windows-capture +[pypi.org]: https://pypi.org/project/windows-capture/ **Windows Capture** is a highly efficient Rust and Python library that enables you to capture the screen using the Graphics Capture API effortlessly. This library allows you to easily capture the screen of your Windows-based computer and use it for various purposes, such as creating instructional videos, taking screenshots, or recording your gameplay. With its intuitive interface and robust functionality, Windows Capture is an excellent choice for anyone looking for a reliable, easy-to-use screen-capturing solution. diff --git a/windows-capture-python/pyproject.toml b/windows-capture-python/pyproject.toml index 665b8cd..a9df958 100644 --- a/windows-capture-python/pyproject.toml +++ b/windows-capture-python/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "windows-capture" -version = "1.0.47" +version = "1.0.50" description = "Fastest Windows Screen Capture Library For Python 🔥" readme = "README.md" requires-python = ">=3.9" diff --git a/windows-capture-python/windows_capture/__init__.py b/windows-capture-python/windows_capture/__init__.py index 8f3ea32..b40611e 100644 --- a/windows-capture-python/windows_capture/__init__.py +++ b/windows-capture-python/windows_capture/__init__.py @@ -229,7 +229,7 @@ def on_frame_arrived( if self.frame_handler: internal_capture_control = InternalCaptureControl(stop_list) - row_pitch = buf_len / height + row_pitch = int(buf_len / height) if row_pitch == width * 4: ndarray = numpy.ctypeslib.as_array( ctypes.cast(buf, ctypes.POINTER(ctypes.c_uint8)), diff --git a/windows-capture-python/windows_capture/windows_capture.cp311-win_amd64.pyd b/windows-capture-python/windows_capture/windows_capture.cp311-win_amd64.pyd index 1dbb362..faedf3e 100644 Binary files a/windows-capture-python/windows_capture/windows_capture.cp311-win_amd64.pyd and b/windows-capture-python/windows_capture/windows_capture.cp311-win_amd64.pyd differ