* 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 64c6148f53
commit b896d8952c

View file

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