+wxDisplayModeInfo wxGetDefaultDisplayMode()
+{
+ wxString mode;
+ unsigned w, h, bpp;
+
+ if ( !wxGetEnv(wxT("WXMODE"), &mode) ||
+ (wxSscanf(mode.c_str(), _T("%ux%u-%u"), &w, &h, &bpp) != 3) )
+ {
+ w = 640, h = 480, bpp = 16;
+ }
+
+ return wxDisplayModeInfo(w, h, bpp);
+}
+
+bool wxApp::SetDisplayMode(const wxDisplayModeInfo& mode)