RestoreResolution() public méthode

Restores the original resolution of the DisplayDevice.
Thrown if the original resolution could not be restored.
public RestoreResolution ( ) : void
Résultat void
 /// <summary>
 /// Releases all non-managed resources belonging to this NativeWindow.
 /// </summary>
 public virtual void Dispose()
 {
     if (!IsDisposed)
     {
         if ((options & GameWindowFlags.Fullscreen) != 0)
         {
             //if (WindowState == WindowState.Fullscreen) WindowState = WindowState.Normal; // TODO: Revise.
             device.RestoreResolution();
         }
         implementation.Dispose();
         GC.SuppressFinalize(this);
         IsDisposed = true;
     }
 }
        /// <summary>
        /// Releases all non-managed resources belonging to this NativeWindow.
        /// </summary>
        public virtual void Dispose()
        {
            if (!IsDisposed)
            {
                if ((options & GameWindowFlags.Fullscreen) != 0)
                {
                    if (device != null)
                    {
                        device.RestoreResolution();
                    }
                }
                implementation.Dispose();
                GC.SuppressFinalize(this);

                IsDisposed = true;
            }
        }