mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 04:45:29 +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
793744402e
commit
c64efeb942
|
@ -148,7 +148,7 @@ namespace OpenTK.Graphics
|
|||
((width > 0 && width == test.Width) || width == 0) &&
|
||||
((height > 0 && height == test.Height) || height == 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