Added equality and inequality operators.

This commit is contained in:
the_fiddler 2008-01-25 15:19:12 +00:00
parent 00e0b6ce52
commit 38dcde42f6

View file

@ -57,7 +57,7 @@ namespace OpenTK.Graphics
#region public int BitsPerPixel
/// <summary>Gets a System.Int32 that contains number of bits per pixel of this display. Typical values include 8, 16, 24 and 32.</summary>
public int BitsPerPixel { get { Debug.Print("This method is not supported currently."); return bits_per_pixel; } }
public int BitsPerPixel { get { return bits_per_pixel; } }
#endregion
@ -124,5 +124,19 @@ namespace OpenTK.Graphics
#endregion
#endregion
#region --- Operator Overloads ---
public static bool operator== (DisplayResolution left, DisplayResolution right)
{
return left.Equals(right);
}
public static bool operator !=(DisplayResolution left, DisplayResolution right)
{
return !(left == right);
}
#endregion
}
}