https://learn.microsoft.com/en-us/windows/win32/api/dxgi/nf-dxgi-idxgioutput-findclosestmatchingmode
IDXGIOutput::FindClosestMatchingMode (dxgi.h) - Win32 apps | Microsoft Learn
Finds the display mode that most closely matches the requested display mode. (IDXGIOutput.FindClosestMatchingMode)
dxgihappsmicrosoftlearn