Added equality and inequality operators.
This commit is contained in:
parent
a973479910
commit
d7dc113238
1 changed files with 15 additions and 1 deletions
|
@ -57,7 +57,7 @@ namespace OpenTK.Graphics
|
||||||
#region public int BitsPerPixel
|
#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>
|
/// <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
|
#endregion
|
||||||
|
|
||||||
|
@ -124,5 +124,19 @@ namespace OpenTK.Graphics
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#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