1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
This commit is contained in:
tux3 2015-06-05 03:07:42 +02:00
parent addcfb47cb
commit 31f7ded768
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -8,12 +8,12 @@ struct VideoMode
unsigned short FPS; ///< Max frames per second supported by the device at this resolution unsigned short FPS; ///< Max frames per second supported by the device at this resolution
/// All zeros means a default/unspecified mode /// All zeros means a default/unspecified mode
operator bool() operator bool() const
{ {
return width || height || FPS; return width || height || FPS;
} }
bool operator==(const VideoMode& other) bool operator==(const VideoMode& other) const
{ {
return width == other.width return width == other.width
&& height == other.height && height == other.height