mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 18:45:32 +00:00
Refresh rate is now considered a match, if it is less than 1.0Hz away of the specified value.
This commit is contained in:
parent
a4fe343d73
commit
54224ed65c
|
@ -148,7 +148,7 @@ namespace OpenTK.Graphics
|
||||||
((width > 0 && width == test.Width) || width == 0) &&
|
((width > 0 && width == test.Width) || width == 0) &&
|
||||||
((height > 0 && height == test.Height) || height == 0) &&
|
((height > 0 && height == test.Height) || height == 0) &&
|
||||||
((bitsPerPixel > 0 && bitsPerPixel == test.BitsPerPixel) || bitsPerPixel == 0) &&
|
((bitsPerPixel > 0 && bitsPerPixel == test.BitsPerPixel) || bitsPerPixel == 0) &&
|
||||||
((refreshRate > 0 && (int)refreshRate == (int)test.RefreshRate) || refreshRate == 0);
|
((refreshRate > 0 && System.Math.Abs(refreshRate - test.RefreshRate) < 1.0) || refreshRate == 0);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue