RestoreResolution() public method

Restores the original resolution of the DisplayDevice.
Thrown if the original resolution could not be restored.
public RestoreResolution ( ) : void
return void
Beispiel #1
0
 /// <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;
     }
 }
Beispiel #2
0
        /// <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;
            }
        }