merged wxDisplayModeInfo and wxVideoMode in a single class, extracted it in a separate wx/vidmode.h header

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-09-27 12:55:46 +00:00
parent 3dd514f167
commit fedec98126
5 changed files with 85 additions and 84 deletions

View File

@@ -147,7 +147,7 @@ static wxRootWindow *gs_rootWindow = NULL;
// MGL initialization
//-----------------------------------------------------------------------------
static bool wxCreateMGL_WM(const wxDisplayModeInfo& displayMode)
static bool wxCreateMGL_WM(const wxVideoMode& displayMode)
{
int mode;
int refresh = MGL_DEFAULT_REFRESH;
@@ -216,7 +216,7 @@ wxApp::~wxApp()
{
}
wxDisplayModeInfo wxGetDefaultDisplayMode()
wxVideoMode wxGetDefaultDisplayMode()
{
wxString mode;
unsigned w, h, bpp;
@@ -227,10 +227,10 @@ wxDisplayModeInfo wxGetDefaultDisplayMode()
w = 640, h = 480, bpp = 16;
}
return wxDisplayModeInfo(w, h, bpp);
return wxVideoMode(w, h, bpp);
}
bool wxApp::SetDisplayMode(const wxDisplayModeInfo& mode)
bool wxApp::SetDisplayMode(const wxVideoMode& mode)
{
if ( !mode.IsOk() )
{