* GameWindow.cs: Improved implementation of GameWindow.Exit(). It should now be possible to cancel the exit through the IsClosing event.

This commit is contained in:
the_fiddler 2009-10-07 16:13:46 +00:00
parent e441e9d067
commit 4482a79e84

View file

@ -261,7 +261,7 @@ namespace OpenTK
#region Exit #region Exit
/// <summary> /// <summary>
/// Gracefully exits the GameWindow. May be called from any thread. /// Closes the GameWindow. Equivalent to <see cref="Close"/> method.
/// </summary> /// </summary>
/// <remarks> /// <remarks>
/// <para>Override if you are not using <see cref="GameWindow.Run()"/>.</para> /// <para>Override if you are not using <see cref="GameWindow.Run()"/>.</para>
@ -269,7 +269,6 @@ namespace OpenTK
/// </remarks> /// </remarks>
public virtual void Exit() public virtual void Exit()
{ {
isExiting = true;
Close(); Close();
} }