mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[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:
parent
7355c196ba
commit
cac454d9cf
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user