diff --git a/Source/OpenTK/Graphics/DisplayResolution.cs b/Source/OpenTK/Graphics/DisplayResolution.cs index 3c6006c2..ebe05fd5 100644 --- a/Source/OpenTK/Graphics/DisplayResolution.cs +++ b/Source/OpenTK/Graphics/DisplayResolution.cs @@ -57,7 +57,7 @@ namespace OpenTK.Graphics #region public int BitsPerPixel /// Gets a System.Int32 that contains number of bits per pixel of this display. Typical values include 8, 16, 24 and 32. - 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 } }