CapSoftware / scap

High-performance, cross-platform screen capture library in Rust.
https://crates.io/crates/scap
Other
231 stars 44 forks source link

feat: correct crop_area for specific targets #88

Closed clearlysid closed 5 months ago

clearlysid commented 5 months ago

The crop_area was based on primary display. With this PR it is now applied relative to the target specified.

Changes:

  1. added a get_target_dimensions funcition on windows and mac
  2. use this function to compare against crop_area and return that correctly
clearlysid commented 5 months ago

The above commit only has mac version sorted. Adding windows version in a bit.

clearlysid commented 5 months ago

adds crop_area for windows