dynobo / normcap

OCR powered screen-capture tool to capture information instead of images
https://dynobo.github.io/normcap/
Other
1.8k stars 91 forks source link

fix: transpose selected region correctly #397 #564

Closed dynobo closed 7 months ago

dynobo commented 7 months ago

On wayland, window and screen dimensions reported by Qt differ if "normal" scaling is used, or the experimental fractional scaling (scale-monitor-framebuffer). To transpose the selected region from window position to screenshot position robustly, it's better to use Qt's window dimensions as reference instead of the Qt's screen dimensions.

coveralls commented 7 months ago

Coverage Status

coverage: 87.094% (+0.001%) from 87.093% when pulling eb6bec7f9ac34e67dd481c49c59c92ca2c0d8e30 on feature/fix-selection-with-scaling into dc8fcede6758f3516b1432db07b35a968f36bd31 on main.