1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-18 04:54:15 +01:00

[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

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));