From d3c951715826d26417a4a6342b9e3eb5b41c0ba5 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 25 Jan 2008 13:11:46 +0000 Subject: [PATCH] Refresh rate may be zero - updated exception string. --- Source/OpenTK/Graphics/DisplayResolution.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/OpenTK/Graphics/DisplayResolution.cs b/Source/OpenTK/Graphics/DisplayResolution.cs index b2f2d32a..3c6006c2 100644 --- a/Source/OpenTK/Graphics/DisplayResolution.cs +++ b/Source/OpenTK/Graphics/DisplayResolution.cs @@ -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;