[host] dxgi: reverse the rotation angle.

This is undocumented however testing yields that DXGI DD reports the
inverse rotation. Research shows that this is because of a difference in
coordiate spaces.

Ref: https://docs.microsoft.com/en-us/windows/uwp/gaming/supporting-screen-rotation-directx-and-cpp
This commit is contained in:
Geoffrey McRae 2021-01-18 15:15:36 +11:00
parent 7355c196ba
commit cac454d9cf

View File

@ -394,7 +394,7 @@ static bool dxgi_init(void)
switch(outputDesc.Rotation)
{
case DXGI_MODE_ROTATION_ROTATE90:
this->rotation = CAPTURE_ROT_90;
this->rotation = CAPTURE_ROT_270;
break;
case DXGI_MODE_ROTATION_ROTATE180:
@ -402,8 +402,7 @@ static bool dxgi_init(void)
break;
case DXGI_MODE_ROTATION_ROTATE270:
this->rotation = CAPTURE_ROT_270;
this->rotation = CAPTURE_ROT_90;
break;
default: