X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1b4908dedc1c4ea8f36ea6676d1563791d31a721..daa85ee3af64b629eb52b8b9d21fa4b837b5cb78:/include/wx/app.h diff --git a/include/wx/app.h b/include/wx/app.h index 8f631cccf2..4e562c5968 100644 --- a/include/wx/app.h +++ b/include/wx/app.h @@ -61,21 +61,21 @@ static const int wxPRINT_POSTSCRIPT = 2; #if wxUSE_GUI // VS: Fullscreen/framebuffer application needs to choose display mode prior // to wxWindows initialization. This class holds information about display -// mode. An instance of it is returned by virtual wxApp::GetDisplayMode. +// mode. It is used by wxApp::Set/GetDisplayMode. class WXDLLEXPORT wxDisplayModeInfo { public: wxDisplayModeInfo() : m_ok(FALSE) {} - wxDisplayModeInfo(const wxSize& size, unsigned depth) - : m_size(size), m_depth(depth), m_ok(TRUE) {} + wxDisplayModeInfo(unsigned width, unsigned height, unsigned depth) + : m_width(width), m_height(height), m_depth(depth), m_ok(TRUE) {} - const wxSize& GetScreenSize() const { return m_size; } + unsigned GetWidth() const { return m_width; } + unsigned GetHeight() const { return m_height; } unsigned GetDepth() const { return m_depth; } bool IsOk() const { return m_ok; } private: - wxSize m_size; - unsigned m_depth; + unsigned m_width, m_height, m_depth; bool m_ok; }; #endif @@ -279,10 +279,12 @@ public: // wxICON_XXX values virtual wxIcon GetStdIcon(int which) const = 0; - // get display mode to use. This is only used in framebuffer wxWin ports - // (such as wxMGL). This method is called early in wxWin initialization - // process and is supposed to be overriden in derived classes. + // Get display mode that is used use. This is only used in framebuffer wxWin ports + // (such as wxMGL). virtual wxDisplayModeInfo GetDisplayMode() const { return wxDisplayModeInfo(); } + // Set display mode to use. This is only used in framebuffer wxWin ports + // (such as wxMGL). This method should be called from wxApp:OnInitGui + virtual bool SetDisplayMode(const wxDisplayModeInfo& WXUNUSED(info)) { return TRUE; } // VZ: what does this do exactly? void SetWantDebugOutput( bool flag ) { m_wantDebugOutput = flag; }