bool wxDisplayImplMacOSX::ChangeMode( const wxVideoMode& mode )
{
- // Changing to default mode (wxDefaultVideoMode) doesn't
- // work because we don't have access to the system's 'scrn'
- // resource which holds the user's mode which the system
- // will return to after this app is done
+#ifndef __WXOSX_IPHONE__
+ if (mode == wxDefaultVideoMode)
+ {
+ CGRestorePermanentDisplayConfiguration();
+ return true;
+ }
+#endif
+
boolean_t bExactMatch;
CFDictionaryRef theCGMode = CGDisplayBestModeForParametersAndRefreshRate(
m_id,