MCPcopy Create free account
hub / github.com/Aleksoid1978/VideoRenderer / D3DDisplayModeToString

Function D3DDisplayModeToString

Source/DisplayConfig.cpp:344–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344std::wstring D3DDisplayModeToString(const D3DDISPLAYMODEEX& dm)
345{
346 std::wstring str = std::format(L"{}x{} {}", dm.Width, dm.Height, dm.RefreshRate);
347 if (dm.ScanLineOrdering == D3DSCANLINEORDERING_INTERLACED) {
348 str += 'i';
349 }
350 str.append(L" Hz");
351 return str;
352}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected