mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 10:54:16 +01:00
[dxgi] Fix 'auto' declaration in FindClosestMatchingMode
Hopefully fixes an incorrect GCC warning for some people.
This commit is contained in:
parent
a196451400
commit
4052cad3ff
@ -137,7 +137,7 @@ namespace dxvk {
|
|||||||
// Select mode with minimal height+width difference
|
// Select mode with minimal height+width difference
|
||||||
UINT minDifference = std::numeric_limits<unsigned int>::max();
|
UINT minDifference = std::numeric_limits<unsigned int>::max();
|
||||||
|
|
||||||
for (auto& mode : modes) {
|
for (auto mode : modes) {
|
||||||
UINT currDifference = std::abs(int(targetWidth - mode.Width))
|
UINT currDifference = std::abs(int(targetWidth - mode.Width))
|
||||||
+ std::abs(int(targetHeight - mode.Height));
|
+ std::abs(int(targetHeight - mode.Height));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user