CapSoftware / scap

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

Scale_factor not working as expected #92

Closed RohanPunjani closed 5 months ago

RohanPunjani commented 5 months ago

Occurred when targets = None

Below is the screenshot of the output received when scale factor is 125% (1.25)

image

RohanPunjani commented 5 months ago

Got this as output after adding proper logs,

DPI: 120 Target: Display(Display { id: 65537, title: "\\.\DISPLAY1", raw_handle: HMONITOR(65537) }) BASE DPI: 96 Scale factor: 1

RohanPunjani commented 5 months ago

By implementing the change, now receives proper scale factor

DPI: 120 Target: Display(Display { id: 65537, title: "\\.\DISPLAY1", raw_handle: HMONITOR(65537) }) BASE DPI: 96 Scale factor: 1.25 Exiting encoding loop 10:39:46 [200] /cropper 8ms

But in micro the encoding is not finished

@clearlysid is there something I am missing?