peilinok / screen-recorder

This repo has been archived, please visit https://github.com/peilinok/traa to get the new project!
GNU General Public License v3.0
152 stars 63 forks source link

Crashed when i use dxgi duplication to capture a rotate screen #28

Open windboy12138 opened 1 year ago

windboy12138 commented 1 year ago

I checked the api doc, which says:

In a rotated mode, the surface that you receive from IDXGIOutputDuplication::AcquireNextFrame is always in the un-rotated orientation, and the desktop image is rotated within the surface. For example, if the desktop is set to 768x1024 at 90 degrees rotation, AcquireNextFrame returns a 1024x768 surface with the desktop image rotated within it. Maybe the code missed this point.

peilinok commented 1 year ago

Thanks for your feedback, I will check this later