From 4052cad3fffef05cd825c42ba274186a0ef245f9 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Mon, 2 Jul 2018 09:19:27 +0200 Subject: [PATCH] [dxgi] Fix 'auto' declaration in FindClosestMatchingMode Hopefully fixes an incorrect GCC warning for some people. --- src/dxgi/dxgi_output.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dxgi/dxgi_output.cpp b/src/dxgi/dxgi_output.cpp index 4d3716bb5..8eb75fd4b 100644 --- a/src/dxgi/dxgi_output.cpp +++ b/src/dxgi/dxgi_output.cpp @@ -137,7 +137,7 @@ namespace dxvk { // Select mode with minimal height+width difference UINT minDifference = std::numeric_limits::max(); - for (auto& mode : modes) { + for (auto mode : modes) { UINT currDifference = std::abs(int(targetWidth - mode.Width)) + std::abs(int(targetHeight - mode.Height));