| 328 | } |
| 329 | |
| 330 | std::wstring DisplayConfigToString(const DisplayConfig_t& dc) |
| 331 | { |
| 332 | std::wstring str; |
| 333 | if (dc.width && dc.height && dc.refreshRate.Numerator) { |
| 334 | double freq = (double)dc.refreshRate.Numerator / (double)dc.refreshRate.Denominator; |
| 335 | str = std::format(L"{} {}x{} {:.3f}", dc.monitorName, dc.width, dc.height, freq); |
| 336 | if (dc.scanLineOrdering >= DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED) { |
| 337 | str += 'i'; |
| 338 | } |
| 339 | str.append(L" Hz"); |
| 340 | } |
| 341 | return str; |
| 342 | } |
| 343 | |
| 344 | std::wstring D3DDisplayModeToString(const D3DDISPLAYMODEEX& dm) |
| 345 | { |
no outgoing calls
no test coverage detected