diff --git a/src/dxgi/dxgi_output.cpp b/src/dxgi/dxgi_output.cpp index 5159ee0f..9018fc9b 100644 --- a/src/dxgi/dxgi_output.cpp +++ b/src/dxgi/dxgi_output.cpp @@ -115,7 +115,7 @@ namespace dxvk { return DXGI_ERROR_NOT_FOUND; // Select mode with minimal height+width difference - UINT minDifference = UINT_MAX; + UINT minDifference = std::numeric_limits::max(); for (auto& mode : modes) { UINT currDifference = std::abs(int(pModeToMatch->Width - mode.Width))