/// <summary> Releases all non-managed resources belonging to this NativeWindow. </summary> public virtual void Dispose() { if (!IsDisposed) { 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 (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; } }