Refresh rate may be zero - updated exception string.

This commit is contained in:
the_fiddler 2008-01-25 13:11:46 +00:00
parent 9ccb301c04
commit fac2251a81

View file

@ -28,7 +28,7 @@ namespace OpenTK.Graphics
if (width <= 0) throw new ArgumentOutOfRangeException("width", "Must be greater than zero.");
if (height <= 0) throw new ArgumentOutOfRangeException("height", "Must be greater than zero.");
if (bitsPerPixel <= 0) throw new ArgumentOutOfRangeException("bitsPerPixel", "Must be greater than zero.");
if (refreshRate < 0) throw new ArgumentOutOfRangeException("refreshRate", "Must be greater than zero.");
if (refreshRate < 0) throw new ArgumentOutOfRangeException("refreshRate", "Must be greater than, or equal to zero.");
this.width = width;
this.height = height;