hecomi / uDesktopDuplication

Desktop Duplication API implementation for Unity (only for Windows 8/10)
http://tips.hecomi.com/entry/2016/12/04/125641
MIT License
557 stars 97 forks source link

Monitor.GetPixels() producing bad data on 1680x1050 display #44

Open Paulgz opened 3 years ago

Paulgz commented 3 years ago

If I have my monitor display size set to 1680x1050, the GetPixels() function is returning corrupt data. You can see this happening on the GetPixels demo scene in unity.

On the same computer with the display set to 1920x1080, its works fine.