d3d11screencapture: Set viewport when drawing mouse cursor
authorJakub Adam <jakub.adam@collabora.com>
Fri, 29 Apr 2022 18:28:53 +0000 (20:28 +0200)
committerJakub Adam <jakub.adam@collabora.com>
Wed, 4 May 2022 15:18:32 +0000 (17:18 +0200)
commit03b6dab00688e4836817dafa4108baf7ca2a3cc1
tree084634fadf87d03cdf2e69a62bcbd41d8e0cc85b
parentf4f342aa7827834d486c7320be28c878eb27c4b0
d3d11screencapture: Set viewport when drawing mouse cursor

If there weren't any moved/dirty regions in the captured frame, the
viewport of the ID3D11DeviceContext would be left at whatever previous
value it had, which could lead to the cursor being drawn in a wrong
position and/or in an incorrect size.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2362>
subprojects/gst-plugins-bad/sys/d3d11/gstd3d11screencapture.cpp