X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e46fcdb43b604a5003d11a488fe6ca3e11be5095..7344108e8a129a3f9b4df5ab0f98a1713db03b89:/include/wx/vidmode.h diff --git a/include/wx/vidmode.h b/include/wx/vidmode.h index e22c8d8f07..713beaeb3f 100644 --- a/include/wx/vidmode.h +++ b/include/wx/vidmode.h @@ -13,12 +13,11 @@ #define _WX_VMODE_H_ // ---------------------------------------------------------------------------- -// wxVideoMode: a simple class containing video mode parameters for a display +// wxVideoMode: a simple struct containing video mode parameters for a display // ---------------------------------------------------------------------------- -class WXDLLIMPEXP_CORE wxVideoMode +struct WXDLLIMPEXP_CORE wxVideoMode { -public: wxVideoMode(int width = 0, int height = 0, int depth = 0, int freq = 0) { w = width; @@ -55,13 +54,12 @@ public: int GetWidth() const { return w; } int GetHeight() const { return h; } int GetDepth() const { return bpp; } + int GetRefresh() const { return refresh; } // returns true if the object has been initialized bool IsOk() const { return w && h; } -protected: - // the screen size in pixels (e.g. 640*480), 0 means unspecified int w, h;