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
1 changed files with 1 additions and 1 deletions
|
@ -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