output monitor orientation in log.
This commit is contained in:
Binary file not shown.
@@ -58,10 +58,17 @@ void Monitor::Initialize(IDXGIOutput* output)
|
|||||||
case S_OK:
|
case S_OK:
|
||||||
{
|
{
|
||||||
state_ = State::Available;
|
state_ = State::Available;
|
||||||
|
const auto rot = static_cast<DXGI_MODE_ROTATION>(GetRotation());
|
||||||
Debug::Log("Monitor::Initialize() => OK.");
|
Debug::Log("Monitor::Initialize() => OK.");
|
||||||
Debug::Log(" ID : ", GetId());
|
Debug::Log(" ID : ", GetId());
|
||||||
Debug::Log(" Size : (", GetWidth(), ", ", GetHeight(), ")");
|
Debug::Log(" Size : (", GetWidth(), ", ", GetHeight(), ")");
|
||||||
Debug::Log(" DPI : (", GetDpiX(), ", ", GetDpiY(), ")");
|
Debug::Log(" DPI : (", GetDpiX(), ", ", GetDpiY(), ")");
|
||||||
|
Debug::Log(" Rot : ",
|
||||||
|
rot == DXGI_MODE_ROTATION_IDENTITY ? "Landscape" :
|
||||||
|
rot == DXGI_MODE_ROTATION_ROTATE90 ? "Portrait" :
|
||||||
|
rot == DXGI_MODE_ROTATION_ROTATE180 ? "Landscape (flipped)" :
|
||||||
|
rot == DXGI_MODE_ROTATION_ROTATE270 ? "Portrait (flipped)" :
|
||||||
|
"Unspecified");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case E_INVALIDARG:
|
case E_INVALIDARG:
|
||||||
|
|||||||
Reference in New Issue
Block a user