diff --git a/src/video/videomode.h b/src/video/videomode.h index ec2ffb950..0cbe52f74 100644 --- a/src/video/videomode.h +++ b/src/video/videomode.h @@ -8,12 +8,12 @@ struct VideoMode unsigned short FPS; ///< Max frames per second supported by the device at this resolution /// All zeros means a default/unspecified mode - operator bool() + operator bool() const { return width || height || FPS; } - bool operator==(const VideoMode& other) + bool operator==(const VideoMode& other) const { return width == other.width && height == other.height