nashaofu / xcap

XCap is a cross-platform screen capture library written in Rust. It supports Linux (X11, Wayland), MacOS, and Windows. XCap supports screenshot and video recording (to be implemented).
https://docs.rs/xcap
Apache License 2.0
491 stars 58 forks source link

Fix wrong operator(should use / instead of *) on scaling factor, tested on Windows #90

Closed Originalimoc closed 9 months ago

nashaofu commented 10 months ago

The reason for this issue is here. I have already released a new version and it should have been fixed. https://github.com/nashaofu/display-info/commit/f80e78bd571fa6cec5f96395278c3bb6f5765f85#diff-ee9da70e8a36920d0c024abb7c25308cb435c3dcba46a3566abca2a11fd1cfffR119

Originalimoc commented 10 months ago

Okay reverted that change, remaining is still desirable to merge

Originalimoc commented 9 months ago

I didn't use rustfmt, try again?

nashaofu commented 9 months ago

I didn't use rustfmt, try again?

If interested, you can participate in the development of the window screenshot function together https://github.com/nashaofu/screenshots-rs/pull/91