Added equality and inequality operators.
This commit is contained in:
parent
00e0b6ce52
commit
38dcde42f6
1 changed files with 15 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue