[dxgi] Fix 'auto' declaration in FindClosestMatchingMode

Hopefully fixes an incorrect GCC warning for some people.
This commit is contained in:
Philip Rebohle 2018-07-02 09:19:27 +02:00
parent a196451400
commit 4052cad3ff
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ namespace dxvk {
// Select mode with minimal height+width difference
UINT minDifference = std::numeric_limits<unsigned int>::max();
for (auto& mode : modes) {
for (auto mode : modes) {
UINT currDifference = std::abs(int(targetWidth - mode.Width))
+ std::abs(int(targetHeight - mode.Height));