Refresh rate is now considered a match, if it is less than 1.0Hz away of the specified value.

This commit is contained in:
the_fiddler 2008-01-24 10:52:12 +00:00
parent a4fe343d73
commit 54224ed65c

View file

@ -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);
}); });
} }