hecomi / uWindowCapture

This allows you to use Windows Graphics Capture / PrintWindow / BitBlt in Windows to capture multiple windows individually and easily use them as Texture2D in Unity.
https://tips.hecomi.com/entry/2021/04/30/230322
MIT License
493 stars 79 forks source link

DPI scaling issues with child windows #50

Open Curtis-VL opened 1 year ago

Curtis-VL commented 1 year ago

Hi Hecomi,

There appears to be some issues with DPI scaling and the placement of child windows.

In legacy applications that are not DPI aware, the child window placement and scale may be incorrect.

Please try testing with something like 'Audacity' as I can reproduce the issue in this with Windows set to 150% scaling! 👍 Other applications that are DPI aware have their child windows in the correct location and scaled correctly.

In these older applications like Audacity, it also seems the cursor becomes slightly offset from the location of the raycast.