From 55176f44e2a86c3e894c7e17b1becdcfcacad054 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 4 Nov 2001 00:00:06 +0000 Subject: [PATCH] oh, better interface to GetDisplayMode (Vadim was right; previous commit was by accident) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/app.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/wx/app.h b/include/wx/app.h index 8f631cccf2..fde92485c3 100644 --- a/include/wx/app.h +++ b/include/wx/app.h @@ -61,7 +61,7 @@ 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: @@ -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; } -- 2.45.2